What is the difference between a pair of supplementary angles and a pair of complementary angles?
A pair of angles is complementary if the sum of their measures adds up to 90°s.
A pair of angles supplementary if the sum of their measures adds up to 180°s.

Δ ABC is a right angle. Triangle (where ∠ABC = 90°)
Here, ∠BAC + ∠ACB =90°
∴ ∠BAC and ∠ACB are complementary angle.
In the 2nd figure,
∠XYO + ∠OYZ = 180°
∴ ∠XYO and ∠OYZ are supplementary angles.