A rectangular prism has a lenght of 8 inches and a width of 7 inches. The lateral area is 150 square inches . What is the height of the prism?