What a deviously misleading diagram.
The triangle on the left isn't actually a right angle triangle, as the other angles add to 100°, meaning the final one is actually 80°, not 90°.
Therefore the triangle on the right also isn't a right angle triangle. That corner is 100°.
100+35=135°. 180-135=45°. So that's 45° for the top angle.
X = the straight line of the joined triangles (180°) - the top angle of the right triangle (45°). 180-45=135°
X is 135°, not the 125° it initially appears to be.