Because the solid has a rectangular base, it must be either a cube, a rectangular prism, or a pyramid. The second property mentioned in the problem (about the types of faces) tells you what kind of solid it is.