The Way of the World by William Congreve is a famous Restoration comedy of manners.
A School for Scandal by Richard Brinsley Sheridan is also a comedy of manners.
Comedy of manners presents the manners, affectations, witty conversations, social behavior, love intrigues, and hypocrisy of upper-class society.
Both plays are known for wit, satire, social observation, and polished dialogue.
Therefore, both The Way of the World and A School for Scandal belong to:
\[
\text{Comedy of Manners}.
\]