Each row of a seating arrangement seats 7 or 8 people. $47$ people are to be seated. How many rows seat exactly 8 people if every seat is occupied?
In the 8-person rows, you can put 40 people into 5 rows
and then, the remaining 7 people sit in one 7-person row.
.