Two beached dolphins were lifted onto a stretcher and guided back out to sea in a two-hour operation.