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.
5.6m questions
7.3m answers