Get them removed. Wisdom tooth pain is caused when there is no room for last row of teeth to settle into the mouth, and they put a squeeze on the adjacent teeth. You can take Ibuprofen 600mg 3-4x per day, but if the pain is really from the teeth it's a mechanical problem that should be corrected surgically. Get your wisdom teeth taken out.
Ibuprofen . Ibuprofen 400, 600 or 800 mg every six hours with food will help in the interim , best to make an appointment with your dentist for x-ray and exam to treat the pain in a permanent way.
Extract the tooth. The best treatment is to have the tooth removed. Relying on pain meds for a prolonged period of time is unhealthy.