There are many reasons for this kind of pain such as cardiac, lungs or chest wall. It is important that you see a doctor who usually in such cases can do an examination and carry out some tests such as an ECG, cardiac enzymes, ultrasound
on the swelling etc. Cardiac pain is very unlikely at your age but cannot be completely ruled out. I would need more information from you regarding the symptoms and it is best you see a doctor. If the chest is swollen it means there could be some sort of injury
, bleeding etc. It needs urgent medical assistance.
hope this helps.