Green cube, yellow cube

How can you paint the faces of these eight cubes so they can be put together to make a 2 x 2 x 2 cube that is green all over AND a 2 x 2 x 2 cube that is yellow all over?
Exploring and noticing Working systematically Conjecturing and generalising Visualising and representing Reasoning, convincing and proving
Being curious Being resourceful Being resilient Being collaborative

Problem



There are eight small cubes. Each face of each cube is to be painted either green or yellow but each cube must use each of the two colours somehow.

Image
Green Cube, Yellow Cube

 

Work out how to paint the faces so that the cubes can be put together to make a $2$ by $2$ by $2$ cube that is green all over AND can be rearranged to make a $2$ by $2$ by $2$ cube that is yellow all over.

Image
Green Cube, Yellow Cube


Now work out how to paint the faces to make a $3$ by $3$ by $3$ green cube and a $3$ by $3$ by $3$ yellow cube.

 

Image
Green Cube, Yellow Cube