Ответ:

If my friend were in trouble, I would immediately help him.