The volume (V) of a pyramid, varies jointly as its height (h) and the area of its Base (B). A pyramid with a height measuring 12 inches and a base with area of 13 square inches has a volume of 52. Find the volume of a pyramid having a height of 7 inches and a base of area 36 square inches.