Patrick has an adjusted gross income of $160,000 in the current year. He donated $30,000 in cash to a public charity, capital gain property with a basis of $15,000 and a fair market value of $40,000 to a public charity, and publicly traded stock with a basis of $20,000 and a fair market value of $35,000 to a private nonoperating foundation. The amount that Patrick can deduct for the stock donation to the private nonoperating foundation is ______.