A car can travel 30 miles per gallon of fuel. If the car travels 360 miles, how many gallons of fuel does it consume? If fuel costs $4 per gallon, what is the total cost of the trip? Let's think step by step and output the final answer within \boxed{}.
user