How friendship and chance ended one man’s wait for a life-saving transplant