Bob transfered property that had an adjusted basis to him of 40000 and fair market value of 50000 to corporation Z in exchange for 100% of Z's only class of stock and 15000 cash. At the time of the transfer the stock had a fair market value of 35000. What is the amount of gain to be recognized by Bob.