Solution:
Let be the numbers on the upper faces of the four dice. Then, the required number of ways is equal to the number of solutions of
The number of solutions of this equation is equal to the
Coefficient of
= Coefficient of
= Coefficient of
Coefficient of
= Coefficient of