hello and welcome to HCM forum,Thank you for writing to us,
After reading through your query I would like you to know that Pain and swelling of gums is from infection either in the gum itself or from the tooth.
We have to check clinically as well as take an X-ray to confirm the cause and provide you to the required treatment.
I would like to request you to kindly see your
dentist soon, as infection spreads rapidly and controlling it at the right time is the treatment.
Until you see your dentist, kindly do warm saline rinses 5-6 times/day.
I assume you do not have any significant medical history, if you do then kindly consult your concerned doctor before taking a painkiller.
Lastly, do not delay your dental visit.
A healthy smile is a sign of health teeth.
I hope this answer was useful for you.
I wish you good health.
Take care.