Andie created a model of a building for a display by attaching a right square pyramid to a cube and then attaching it to a display board. The pyramid had a base edge length of 6 inches and a slant height of 5 inches. The cube had an edge length of 4.5 inches. She painted the visible surfaces of the figure after she attached it to the board.
What was the area of the model that Andie painted?