Joe's grandmother wanted to make a delicious dish for them. Joe and his little sister went to a supermarket to buy cooking oils. Joe bought 2 packs of refined oil, each of capacity 1 pt, and 1 cup of coconut oil. His sister bought three packs of 12 pt mustard oil each. Calculate the total amount of oil they bought all together(in gallon).