REG- AMT Question?

Hello AMT experts, First of all, how you guys understand/practice AMT related questions for REG? I have hard time understanding this concept. Please help. here is the question taken from Becker, Robert had current-year adjusted gross income of $100,000 and potential itemized deductions as follows: Medical expenses (before percentage limitations) 12,000 State income taxes 4,000 Real estate taxes 3,500 Qualified housing and residence mortgage interest 10,000 Home equity mortgage interest (used to consolidate personal debts) 4,500 Charitable contributions (cash) 5,000 What are Robert's itemized deductions for alternative minimum tax? a. $17,000 b. $19,500 c. $25,500 d. $21,500 Explanation Choice "a" is correct. Robert's itemized deductions for alternative minimum tax purposes are calculated as follows: Medical expenses (exceeding 10% of AGI) 2,000 State income taxes (not allowed) − Real estate taxes (not allowed) − Qualified housing and residence interest 10,000 Home equity mortgage interest (not used to buy, build, or improve the home-not allowed) − Charitable contributions (no difference) 5,000 Alternative Minimum Itemized deductions 17,000 My question is , as per my understanding the real estate tax, state taxes, home equity mortgage interest for other purpose are added back and qualified mortgage interest for home was ok. But here those state, real estate taxes are excluded and qualified mortgage interest interest is included , why? How you guys practice/ understand AMT anyway?