Answer:
2 small; 3 large
Explanation:
Using s and L for the number of small and large cars, respectively, we have ...
5s +8L = 34 . . . . number of passengers
s + L = 5 . . . . . . . number of cars
5s +8(5 -s) = 34 . . . . substitute for L
-3s +40 = 34
-3s = -6 . . . . . . subtract 40
s = 2 . . . . . . . . divide by -2
L = 5-2 = 3
2 small cars and 3 large cars were rented.