Mario is constructing a frame for a 10 inch by 8 inch photo. He wants the frame to be the same width all the way around and the total area of the frame and photo to be 120 square inches. What is the dimension of the frame?