Independently corrected solution.
Let AB = AC = a cm. Since BD = CE = 2 cm, AD = AE = (a + 2) cm. The inner equal legs are AB and AC, not BD.
Shaded area = area of triangle ADE − area of triangle ABC. Thus [(a + 2)² − a²] ÷ 2 = 22.
The difference is (4a + 4) ÷ 2 = 2a + 2, so 2a + 2 = 22, a = 10 and AD = 10 + 2 = 12 cm.
Check: 12 × 12 ÷ 2 − 10 × 10 ÷ 2 = 72 − 50 = 22 cm².