The volume of a pyramid varies jointly with the base area of the pyramid and its height. The volume of one pyramid is 35 cubic inches when its base area is 15 square inches and its height is 7 inches. What is the volume of a pyramid with a base area of 36 square inches and a height of 5 inches?