IRS offers advice on cost-sharing agreements and stock-based