An architect wants to plan the creation of a house, but he has only two perspectives, one from the left and one from the front. The house consists of concrete cubes. All concrete cubes must be connected.
How many cubes does the architect need to build the house, at minimum?
Perspectives, the left one is from the left: