What can I take for chest congestion while pregnant?

My nose is runny, and now I’ve developed horrid chest congestion and it hurts to cough. What is safe? I am 21 weeks pregnant.