TASK DEFINITION: Given a negotiation between two participants, answer 'Yes' if both participants agree to the deal, otherwise answer 'No'.
PROBLEM: THEM: if i can have the hats you can have everything else YOU: that works for me THEM: okay great! thank you!

SOLUTION: Yes

PROBLEM: THEM: i would like the ball and 2 hats please YOU: i kinda like the ball. i can let you have all three hats. THEM: that's fine. you take the books YOU: i get the books and ball, you get the hats? THEM: exactly.

SOLUTION: Yes

PROBLEM: THEM: hey, the book and the hat are very important to me YOU: i think we might both be in the same boat THEM: do you want all the basketballs and i keep the hat and book? YOU: that's not going to work for me, what's more valuable to you the hat or the book? maybe we can each get one then split the bballs? THEM: i keep the book and all the balls then? YOU: i'll give you the book and 2 balls THEM: ok.

SOLUTION:
Yes