The surface area of a tridimensional figure is given by the addition of the area in each of the faces; in a right rectangular prism we have 6 faces, which are paired to have the same area and form the prism, first, we have 2 sides, then we have front and back, and last we have top and bottom.
Since we know the area for the side, top and bottom we could add it up and then multiply it by 2 for the three missing faces.