Allocating 3 portions to x and 7 portions to y.
Explanation:
Given that,
The percentage of students buy lunch at cafeteria: 30% = x = 0.3
Hence, the students bringing the lunch from home would be = y = 1 - 0.3 = 0.7
Now, the spinner has that equal-sized sections. Also, the probability of x and y are 0.3 and 0.7.
After multiplying both the probability by 10, we get
x = 3
y = 7
It shows that for every three students who buy lunch from cafeteria, seven students bring food from home. Hence, we can allocate the side of spinner for simulation in such as way:
Section 0 = y
Section 1 = y
Section 2 = x
Section 3 = y
Section 4 = y
Section 5 = x
Section 6 = y
Section 7 = y
Section 8 = x
Section 9 = y