Answer:
5
Explanation:
I assume the ratio is 1:3.
We need a total of 20 candies, and we need the number of sweet candy to be 3 times the number of sour candy.
Start guessing the number of sour candy with 1. Then find the number of sweet candy. Then find the sum. Keep going up with the guess until it works.
Sour Sweet Sum Comment
1 3 4 too low
2 6 8 too low
3 9 12 too low
4 12 16 too low
5 15 20 exactly right
Answer: 5