Hence the emergency dinghies and rafts on airplanes certified for long-haul overwater travel. Dual-engine failures are very rare, as far as I am aware, and airplanes can fly with one engine.
Fortunately, a dual-engine failure usually occurs at a high altitude which gives pilots a quite long...