The altitude from the right angle of a right-angled triangle $ABC$ divides it into two triangles of perimeters $p$ and $q$. Compute, in the terms of $p$ and $q$, the perimeter of the triangle $ABC$.
I got that $p+q=Perimeter(ABC) + 2|AD|$, but I got lost
Any hints?
Thanks

Hint. Use the fact that $\triangle ABC, \triangle DBA, \triangle DAC$ are all similar.
Further Hint, Rot13'd. Jung ner gurve nernf? (Use http://www.rot13.com/ to decode.)