Ryan transferred land with a fair market value of $500,000 to a controlled corporation. The land had an adjusted basis of $200,000. In exchange for the land, Ryan received stock worth $320,000, $80,000 in cash, and property with a fair market value of $100,000 and an adjusted basis of $10,000. How much gain does Ryan have to recognize?