The digits and letters on the five cubes are as shown, where B and F may be interchanged.
0 1 2 3 4 6
0 1 2 5 7 8
E J R T V Y
A D O S U B
C L M N P F
The solution with one cube containing 0, 1, 2, 5, 8, 9 = 25 does not work because we're looking for the digits on the other faces of the cube containing the number 6.