In the figure below, the areas of rectangles A, B, and C are 12, 24, and 40, respectively. Find the area of rectangle D.