A car travels a total distance of 180 miles, and it consumes fuel at an average rate of 30 miles per gallon. Along the route, there are 5 checkpoints where the car refuels. Assuming the car starts with a full tank and refuels to full capacity at each checkpoint, if the car's fuel tank capacity is 10 gallons, how much fuel does the car consume in total, and what is the total cost if the price per gallon is $3? Let's think step by step and output the final answer within \boxed{}.
user