Taking paracetamol and ibuprofen together (assuming no medical contraindications e.g. allergy, other medicines etc..)
is an effective way to manage dental pain until you can see a dentist because the two combined have a synergistic effect., i.e. the pain relief is essentially amplified.
One way to take them is have paracetamol and then two hours later take ibuprofen and so on (being careful not to exceed the maximum dose, doing so has no greater therapeutic benefit and simply risks liver damage)