Independent verification and solution:
For a view from above, each occupied ground position contributes one square, regardless of the height of its stack. There are 7 occupied positions: the H-shaped footprint.
For the labelled side view, record the tallest stack at each of the three positions across the view. The heights from left to right are 1, 1 and 3 cubes. Hidden cubes do not add extra squares to the outline. The footprint has 7 cubes at ground level and the tall stack adds 2 more, giving the stated 9 cubes. This is a drawing task; the text describes a valid construction for manual checking.