12. In a triangle ABC, AC = 36, BC = 48, and the medians BD and AE to sides AC and BC, respectively, are perpendicular. Find AB.

To find the length of AB, we can use the property that medians of a triangle divide each other in a ratio of 2:1. Let's call the point of intersection of the medians as point O.

1. First, let us find the length of BO. Since the medians BD and AE are perpendicular, this means that BO is the altitude of triangle ABC from vertex B to side AC. Let's find the area of triangle ABC to calculate BO.

a. We can find the area of triangle ABC using Heron's formula:
s = (AC + BC + AB) / 2 = (36 + 48 + AB) / 2 = (84 + AB) / 2
area = √(s(s-AC)(s-BC)(s-AB)) = √((84 + AB)/2 * (48/2) * (36/2) * (AB/2))
= √((84 + AB) * 24 * 18 * (AB/2))
= √(24 * 18 * (84 + AB) * AB)

b. For a triangle, area = 1/2 * base * height
area = 1/2 * AC * BO
√(24 * 18 * (84 + AB) * AB) = 1/2 * 36 * BO
2 * √(12 * 9 * (84 + AB) * AB) = BO

Now, let's move on to finding the length of AO.

2. Since the medians divide each other in a ratio of 2:1, the length of AO is twice the length of BO.
AO = 2 * BO = 4 * √(12 * 9 * (84 + AB) * AB)

3. Finally, we can use the Pythagorean theorem to find the length of AB.
AB^2 = AO^2 + BO^2
AB^2 = (4 * √(12 * 9 * (84 + AB) * AB))^2 + (2 * √(12 * 9 * (84 + AB) * AB))^2
AB^2 = 16 * 12 * 9 * (84 + AB) * AB + 4 * 12 * 9 * (84 + AB) * AB
AB^2 = 1152 * AB^2 + 432 * AB^3

Solving the above equation for AB will give us the desired length of AB.