The surface area of a rectangle prism is 166 square feet. The surface area of a similar rectangular prism is 1494 square feet. If the length of the smaller prism is 5 feet, what is the length of the larger prism?