Optimized Human-AI Work