It's 90 days, not 3 months. There is a difference.
No entry is guaranteed. You could very likely be denied entry either time, or given a free pass both times. No way to know until you try.
Remember, Canada, Mexico and "adjacent territories" count toward your 90 days.
Read FAQ 252 for more.
If you are denied entry, you will no longer be able to use the VWP ever again, even to transit, would be sent back to your port of embarkation (the place you just came from, which may or may not be your…

