Heave-to and pull out the sail making kit
Take that sail down in the cabin, and stitch it back up. It's not that ******* hard. And if you're sailing any distance and you don't have a sail making kit on board, or atleast a full back up set of sails, then you are making a mistake. Sails tear.
Anyway, I'm somewhat against the need to take classes and the lot. I taught myself how to sail, and I think everyone should be able to do that. I just hjope this guy is humiliated enough he won't head back out, unprepared, and end up calling the coast guard for a tow again.