Probability & Random Variables

Answer & solution
Official answer: 10
1. Method and setup. There are 6⁴ equally likely ordered outcomes. Because 22 is close to the maximum 24, work with deficits from six rather than enumerating all possible die values. A deficit sum of two can arise as one deficit of two or two deficits of one, providing a quick independent count of 4+6 outcomes.
2. Work through the result and its assumptions. Write each die result as 6−di. Sum22 means d1+d2+d3+d4=2 with nonnegative deficits. The upper bound di≤5 is automatic, so stars and bars gives C(5, 3)=10 outcomes among 64=1296. Hence X=10, assuming independent fair dice.