What does a red flag flying at a beach mean? Part 2

Red - Beach Closed DO NOT enter the water

Yellow - Warning - potentially dangerous conditions

Red and Yellow - Patrolled area, the safest swimming area

Now I did not know this !
What if there is a red flag and a yellow flag 50 metres away?
I have never seen a shark flag!