Colourful cube

A colourful cube is made from little red and yellow cubes. But can you work out how many of each?

Problem

Colourful Cube printable sheet



This cube is made up from $3\times 3\times 3$ little cubes whose faces are either all red or all yellow. 

 

Image
A 3 by 3 cube made up of smaller plainly coloured unit cubes. Only the cubes which are the corners of the large cube are coloured yellow, the rest are red.

 

The views from all sides of the cube look like this, and the little cube in the centre is red.

How many little red cubes are used in total? How many little yellow cubes are used?

Suppose the other views of the cube do not necessarily look like this, and the little cube in the centre is not necessarily red.

What is the most and least number of little red cubes that could be used? 

With thanks to Don Steward, whose ideas formed the basis of this problem.