Hello, I'm Dr. Deb and will do my best to help you today.
I'm sorry for this concern for TJ and Maverick. Since they're both nauseous, it sounds as if they might have eaten something they shouldn't although viral/bacterial infections can also affect more than one dog in the household at the same time.
Regardless, the following is what I'd recommend if they don't seem too lethargic or weak:
1. Over the counter, Pepcid AC (Famotidine) can be given at a dose of 1/4th mg per pound of body weight twice a day which should help with their nausea issues.
Another option would be Prilosec (Omaprazole) at a dose of 1/2 mg per pound of body weight once a day.
2. I would withhold food for at least another 8 hours; just give everything a chance to settle down.
3. If their vomiting appears to have subsided, then I'd offer a small amount of boiled, skinless, boneless chicken breast and 20 minute white rice but only a small amount at one time and feed every 2-3 hours.
4. I'd be careful about how much water they're allowed to drink at one time as well. If they're nauseous after drinking, then I'd also withhold water for 4-5 hours and then only let them drink a small amount. Pedialyte is another excellent option to consider since it contains electrolytes which may be of benefit.
If they continue to be nauseous, however, and/or other signs develop, then a vet visit may be prudent.
I hope this helps and that they're feeling better soon. Deb