TASK DEFINITION: Given a negotiation between two participants, answer 'Yes' if both participants agree to the deal, otherwise answer 'No'.
PROBLEM: THEM: i have a preference for the hats  YOU: me too. how about we split the hats and i'll take the books? you can have the ball.  THEM: how about if you only take two of the books?  YOU: i'll take one hat and two books. can i have the ball?  THEM: that's the same for me as you having all the books sans ball  YOU: hmmm.... how about we split the hats, i take one book and the ball? you can have a hat and two books? would that work?  THEM: that works. thank you  YOU: great! good to get a deal!

SOLUTION: Yes

PROBLEM: THEM: hello, i would like the book and 2 of the remaining items, your preference  YOU: i also need the book  THEM: what's the book worth for you?  YOU: 6  THEM: okay, it's 5 for me, so i can let you have it, but i get the rest  YOU: sounds like a deal..

SOLUTION: Yes

PROBLEM: THEM: hi, i want the ball and hat, you can have the 3 books  YOU: deal.

SOLUTION:
Yes

