Well, 30% isn’t their margin. It’s their gross revenue. Calculating the margin would require knowing their hosting / development costs for the App Store ecosystem.
But I think we're talking about millions here, not Billions...
Should be pretty easy to topple Apple if you just need to throw a few million at the problem.
Very much getting into the hundreds of millions if not billions.