A square based prism and a triangular prism are the same height. The base of the triangular prism is an equilateral triangle, with an altitude equal in length to the side of the square. Compare the lateral areas of the prisms.