Samantha is driving from City A to City B, a total distance of 300 miles. She starts her journey with a full tank of gas and drives for 120 miles before stopping for a break. After the break, she continues to drive another 80 miles. If Samantha's car consumes fuel at a rate of 30 miles per gallon and the cost of gas is $3 per gallon, how much will Samantha spend on gas for the entire trip? Let's think step by step and output the final answer within \boxed{}.
user