Self employed

One thing you missed is in both scenarios you took out 25,000.  25,000 is added to your income.  It's not how much you contribute to the ROTH IRA but the total withdrawal whether you take out withholding or not.  So your income is 55,000 both times.