Joy buys some slices. I don't know how many. So I will let the unknown number be represented by the letter X
Joy buys X slices.
How many does Ansan buy (answer in terms of X)
Then work your way through the other purchases.
Make an equation then solve it.
Give it a go and show us your logic so we can help you more if you need it.
To other answerers: Please let asker guest answer this.