A car consumes fuel at a rate of 30 miles per gallon. If the car drives 150 miles and the fuel costs $3.50 per gallon, how much did the trip cost? Let's think step by step and output the final answer within \boxed{}.
user