Greg contributed some inventory from his sole proprietorship to a public charity for its use. On the date of the contribution, Greg's basis in the inventory was $5,000 and the fair market value was $15,000. What is the amount of charitable contribution allowed (before considering any potential percentage limitation)?