If we’re keeping it realistic and not reckless, I’d run it as a rescue-first scenario.
1) Immediate safety: get dry, get out of the surf zone, check for injuries, and secure anything you can salvage. Don’t exhaust yourself in the first hour.
2) Water: focus on collection before purification fantasies. Set up rain catch (any sheet/plastic/fabric angled into a container). If you find freshwater, treat it as questionable and use the safest method you can manage. Avoid drinking seawater.
3) Shelter: shade and wind/rain protection. Build something fast and maintainable. Insulate from the ground with debris.
4) Signaling: make a big, high-contrast ground signal on the most visible beach, plus an elevated marker. If you can safely maintain a small fire, keep it for when you hear/see potential rescuers rather than burning all day.
5) Food: only after water/shelter/signaling. Go for low-risk calories (shellfish/foraging) only if you can identify safely. Don’t gamble on unknown plants.
Common mistakes: overtravel, dehydration, sun exposure, and cuts/infections from sloppy tool use. If this is more than hypothetical, a local coast guard/boater safety course plus a wilderness first aid class is a great investment.