Answer:
x = 5
y = 7
Step-by-step explanation:
See the image that I have added to you above to get the whole working.
30%
12/40 = 0.3
0.3 * 100 = 30%
So, 30% of students picked pizza.