When someone is sharing a problem, give encouragement. Offer to help if possible. Show the kindness and compassion you would hope to receive from someone else when in a similar situation.
Source: 12 Essential Communication Skills That Aren’t Taught in Schools at All @ Lifehack
Photo: friendship by bekassine... under Creative Commons license