This is because, all three interior angles in a triangle will have a sum of 180 degrees.
So given that we have two angles, 90 degrees(right angle) and 49 degrees, we can replace angle 2 as our unknown value(a variable) and make it equal to 180 degrees then solve for x;