Start by taking the total number of golf balls, 360, and dividing it by how many golf balls come in each pack, to find the number of packs.
360 ÷ 24 = 15
So there are 15 packs, each with 3 yellow golf balls.
15 · 3 = 45
Meaning 45 of the golf balls would be yellow