For the gym to seat 650 people, including 176 in the bleachers, there must be 650-176=474 chairs. If those chairs are arranged in 25 rows, there must be
... ceiling(474/25) = 19
chairs in each row.
_____
One of the rows can have only 18 chairs. The "ceiling" function returns the smallest integer not less than its argument.