ABC is an isosceles triangle where AB = AC and BC = 60. D is a point on BC such that the perpendicular distance from D to AB and AC is 16 and 32, respectively. What is the length of AB?

50