hey there!
We are given that
He puts 36 glasses on a table
And puts same number in 9 rows
So we need to know how many glasses are kept.
Leg number of glasses kept be A
=> 9 x A = 36
=> A = 36/9
=> A = 4
Hence he puts 4 glasses in each row
Hope this helps your dear :)