Moritz rescued his friend from a dangerous ocean rip current by pulling his friend from the water. Which activity most likely prepared him for this?

enrolling in a class about swimming safety
taking a CPR training class
watching online shows about being a lifeguard
talking with friends who are lifeguards