Firstly, a straight line = 180 degrees.
Based on the statement above, we can create an equation of 180-95 = x
(Which is 85)
Now, we also know that all of the angles in a triangle add up to 180 degrees, so we can create this equation of 180- (85 + 50) = y
(Which is 45)