If you would like to know how many jelly beans were in the bag, you can calculate this using the following steps:
8% of all the jelly beans is 24
8% * x = 24
8/100 * x = 24 /*100/8
x = 24 * 100 / 8
x = 300 jelly beans
The correct result would be 300 jelly beans.