The casualties were located but with some difficulty, and Coastguard rescue teams spent "considerable time" extracting them safely from the beach in East Lothian.