Your firend has just approached you with a problem they are having with another friend . they really want you to listen what will you do and say to show them that you are actively listening
You could make eye contact, and not be doing something on the side, so it doesn't seem like you don't care. Then nod and ask questions and put in phrases like " i see " when it is the right time.