Let the first angle be x°.
Then the second angle shall be (x - 22)°.
The two angles are complementary. Hence their sum shall be 90°.
First angle + second angle = 90°
=> x° + x° - 22° = 90°
=> 2x° = 112°
=> x° = 56°
Hence first angle = x° = 56°.
Second angle = (x - 22)° = 34°.