The angle made by any right angle is 90° and the angle made by a straight line is 180°. These are the main equations required to solve the values of x. The first 2 are right angles and the last 2 are straight lines. So the sum of the components within that right angle is 90° and for a straight line is 180°.