We had a visit from two local lifeguards. They told us the meaning of each flag which we later practised outside. We also looked at the clothing they wore for different situations.
Red and yellow = Safe to swim between these two flags as lifeguards are watching.
Black and white = Dangerous waters, no swimming.
Sock flag = No inflatables as you can be carried away by the tide.