TASK DEFINITION: Given a negotiation between two participants, answer 'Yes' if both participants agree to the deal, otherwise answer 'No'.
PROBLEM: THEM: i would like the book and the hat. YOU: no problem, can i take all 3 balls? THEM: deal. YOU: deal.

SOLUTION: Yes

PROBLEM: THEM: i'd like to take the hats and the book YOU: what is of most value to you - the book or both hats? THEM: i'd rather have the book YOU: ok. would you be willing to take the book and i get two hats and two balls?

SOLUTION: Yes

PROBLEM: THEM: if i can have the book and the hats you can have all of the balls YOU: sorry i would need a hat with the balls THEM: okay i can part with one hat YOU: okay deal then 1 hat and 3 balls for me THEM: okay! thank you!

SOLUTION:
Yes