Explanation:
x = number of winter hats
20-x = number of baseball hats
Dividing those quantities will get us 2/3 because of the ratio 2:3
x/(20-x) = 2/3
3x = 2(20-x)
3x = 40-2x
3x+2x = 40
5x = 40
x = 40/5
x = 8
There are 8 winter hats
And there are 20-x = 20-8 = 12 baseball hats.
The ratio 8:12 reduces to 2:3 after dividing both parts by 4. This helps confirm the answer.