A group of friends are planning a road trip. If they all contributed $24, then they would be $6 short of the total. If they all contributed $25, then they would have $3 more than needed. What is the total cost of the trip?

let the number in the group be x

24x + 6 = 25x - 3
-x = -9
x = 9

cost = 24(9) + 6 = 222 , just like Ms Sue said.