Your friend? Your mate?
If they're both your good friends, don't get involved. Perhaps talk to them both but you don't want to be stuck in the middle.
Also, when friends put themselves in situations like that, it's really hard to get through to them. They may understand your logic, but...