The correct answer is selective attention.
Molly can selectively choose what to focus her attention to and what to mute. In her case, she is listening only to what the teacher has to say and not pay attention to what her friends are talking about around her. She is able to do this because her selective attention has improved.