Here’s how to treat both, and how to know if you should make a doctor’s appointment.