Second basket has exactly 2 balls
Let’s number the baskets as A,B,Cand D
With the first constraint, 2 of the balls are going to basket 2(B), hence we have 5-2=3 balls left to distribute among the remaining baskets.
A+C+D = 3
Number of distributions possible = 5C2 = 10