TASK DEFINITION: Given a negotiation between two participants, answer 'Yes' if both participants agree to the deal, otherwise answer 'No'.
PROBLEM: THEM: i'd like to grab that book, as well as a hat YOU: book and i keep the rest THEM: i'd like to have at least one other, i can also do book + ball YOU: ok one book and onehat for you.

SOLUTION: Yes

PROBLEM: THEM: 1 hat 2 balls for m YOU: gimme the hat and books THEM: 1 ball 1 hat 2 books for me YOU: i need hat or no deal THEM: no deal YOU: agreed.

SOLUTION: No

PROBLEM: THEM: i'll take the book and 1 ball. you take the hat and 2 balls. YOU: i can not agree to that offer. if i can have the book and two balls you can have the hat and one ball THEM: no. i must have the book. YOU: okay you can have the book but, i get everything else THEM: alright. i take the book. you take the rest. YOU: okay thank you! THEM: thank you!

SOLUTION:
Yes