Let:
C = Number of cars washed
T = Number of trucks washed
They washed a total of 80 vehicles, so:

They raised a total of $486. They charged $5 to wash a car and $7 to wash a truck.​ so:

Let:

From (1) solve for T:

Replace (3) into (2):

Replace the value of C into (3):

They washed 37 cars and 43 trucks