0,1,2 have to be common in both cubes. Since we have these 3 digits combine with all othe digits. '9' is upside down of 6. so we can only one of them.
So the remaining 3,4,5,6,7,8 can be in any of the faces of the two cubes.
Eg:
Cube 1: 0,1,2,3,4,5
Cube 2: 0,1,2,6,7,8
or
Cube 1: 0,1,2,3,5,7
Cube 2: 0,1,2,4,6,8