Let the first angle be 4x.
So the second angle is 5x. [Since their ratio is 4:5]
Since the angles form linear pair,
4x + 5x = 180
9x = 180
x = 180/9 = 20
So, first angle = 4*20 = 80
second angle = 5*20 = 100
Thus the required angles are 80 degrees and 100 degrees.