A straight angle measures 180º.
A triangle's interior angles also measure 180º.
The angle measuring 130º is complementary to the corresponding interior angle, so that interior angle plus 130 has to equal exactly 180º.
180 - 130 = 50º
45 + 50 = 95º, so subtract that from 180 to find the measure of the last interior angle of the triangle.
180 - 95 = 85º
That angle of 85º is complementary to the other outside angle, n, and to find that subtract 85 from 180.
180 - 85 = 95º
n = 95
Hope this helps!