You may have added the number of squares in the front and on the side. To find the volume, you need to count the number of cubes that fill the entire rectangular prism.