Optimal Solution Trading & Contracting