In which sentence does the italicized pronoun agress in numbers with its italicized antecedent? The boys want their dessert now. The waiter refilled their glasses as they emptied it.

The first sentence is correct.