Similarly naive outsider, but I've read things here and there. My understanding is that they should have declared mayday (emergency) and landed (potentially at another airport, potentially in the middle of nowhere) _way_ before so that when they have landed they still had 30 minutes or more of fuel in the tanks.