This is an example of selective attention.
Rachel was able to hear her own name despite the loud music because she was focusing on what her friend was saying rather than focusing on the music. Therefore, she was able to pick out the sound of her name even though it may have been muffled by the background noise.