The pilots fought to keep the aircraft aloft for nearly 32 minutes , but eventually became trapped in the towering mountain ranges surrounding Mount Fuji and crashed , killing 520 out of the 524 passengers and crew on board .