Deductions & credits

So why is it not legal if you combined the 1098 - since we paid the total Interest and tax add up equal to the same amound?