I will assume that all the cups are different and all the balls are the same.
There are 10C3 ways to choose three cups = 120
There are 10C2 ways to choose 2 cups = 45
but either one could have the 2 balls so that is realy 90 ways
there are 10 ways they can all be in the same cup
so that makes a total of 220 ways and 90 of those have exactly 2 balls in one cup
so 90/220 = 9/22
I am not 100% sure it is correct. I think it is though.
When you are given the answer that your teacher/site says is correct please share it with us.