Answer:
Hans will be taxed $24,000 for his rental income and $150,000 for the capital gains realized on the sale of the building.
Step-by-step explanation:
In the US, aliens must pay taxes on effectively connected income (ECI):
Alien's income or capital gains are all taxed at an effective 30% rate, so his earnings during year 1 will result in $300,000 - $220,000 = $80,000 x 30% = $24,000 taxes due, and the sale of the building will result in $2,900,000 - $2,400,000 = $500,000 x 30% = $150,000 in taxes.