n needs to be a factor of 20 n 15 to divide them equally.
20 = 5 * 2 * 215 = 5 * 3
therefore no. of groups(n) = 5
also,if each group has equal no. of boys (x),
then x= 20/5
x=4
similarly y = 15/5
y = 3