Something very similar happened to friends of mine. My very first suggestion would be for your friend’s parents to contact a foreclosure lawyer IMMEDIATELY. If the foreclosure has not been served yet, there may still be time to work out a solution. If the foreclosure has already been served, there is not much that can be done. I would contact an attorney before attempting to do anything else. My friends ended up losing their home because the focused soley on getting the money, and not on averting the foreclosure. They got the money in time, but because of legalities and technicalities, it was not received by the mortgage holder before the deadline, and they lost their home anyway.
My mother also was in a similar situation several years ago. Her first action was to attempt to avert the foreclosure by getting an attorney involved. She ended up saving her home, plus she had the added benefit of not having to pay what the mortgage company said she owed (she never actually owed anything-- it turned out the company was acting illegally with the customers’ payments-- but that’s another story). My point is, had she not contacted an attorney immediately, she would have lost her home. I cannot stress enough-- have the parents contact a foreclosure attorney NOW.