X owns 100 percent of Y stock with a basis of $100. Y owns a rental building (its only asset) with a gross FMV of $1,000 and subject to a $400 nonrecourse mortgage. Y’s AB in the building is $300, and it has $200 of E&P. X sells its Y stock to Z for $600,...