A French club collected the same amount from each student going on a trip. When six students could not go, each of the remaining students was charged 3 dollars extra. If the total cost was $540, how many students went on the trip?
So far I've got Let x=The amount of students. x-6