A carpenter has driven four stakes into a level building lot for the corners of a rectangular building as shown in the figure. When she measures the diagonal distance from Corner A to Corner C, she gets a measurement of 40 feet. The distance from Corner A to Corner D is 24 feet. Assume the stakes have been set properly and the corners of the rectangle are square. Using the 3-4-5 rule, calculate the distance from Corner C to Corner D.
A. 24
B. 60
C. 32
D. 50