Is it panadol? If so, try the soluble ones.

If he's gagging and can't manage to get it down then you can try crushing and putting in jam/honey/nutella.

Otherwise lots of encouragement and distraction. I hope the boys both feel better soon.