Probability of choosing two candies of the same color = Probability of choosing 2 red candies + Probability of choosing 2 yellow candies + Probability of choosing 2 blue candies.
Plug in the given numbers (x) to the equation.
For example, let's take the first value it gives us.
-10(-2) +y=4
20+y=4
y=-16
Then you would put that on the table, and plug in the next value(s).
Hope this helped!