Let one angle be x. It is given that other angle is one-third of first.
So, other angle will be x/3.
Again, given that both the angles are making a linear pair.
So, their sum will be 180°
x + x/3 = 180°
(3x + x)/3 = 180°
4x/3 = 180°
x = (180° x 3)/4
x = 135°
Hence, the angles are 135° and 1/3 x 135°, i.e. 135° and 45°.