In 2014, Kerline invested $40,000 in a cattle-feeding partnership that used nonrecourse notes to purchase $30,000 of feed, which was used to feed the cattle and expensed. If Kerline's share of the expense was $50,000, what is the most that Kerline can deduct in 2014?