There were 8 chairs and 32 people.
Lets take x - chairs
Y = people
Number of people were 4 times the number of chairs. Hence
4x = why.
Also, after all the chairs were occupied, 24 people were standing. Hence number of people minus number of chairs is
Y-x=24. Substitute value of why here.
X=8, which yields y=32.
Thats the answer. 8 chairs and 32 people. Check it, number of people are 4 times number of chair. And after 8 people sat on the chair, 24 people were left standing.