Was just wondering, if I give DD panadol at 6pm, what time can I then give her nurofen?

And then if she has nurofen, do I wait 4 hours from the last panadol dose before I can give more panadol?