For the 1st part. You are looking for the following angle with a similiar angle. For example, <Z = <X. They are across from each other and looks similoar but not the same.
The second part involves line equation and Pythagorean theorem.
8.3m questions
10.9m answers