The two angles must be supplementary and adjacent to form a linear pair.
Adjacent angles are angles that touch and share a common line segment, line, or ray. Think of two rooms that share the same wall and how they are considered adjacent rooms.
Supplementary angles form a straight angle. They add to 180 degrees.