TASK DEFINITION: Given a negotiation between two participants, answer 'Yes' if both participants agree to the deal, otherwise answer 'No'.
PROBLEM: THEM: i can offer the ball YOU: i'd be content with a ball and a book THEM: i can offer the ball and a hat, i need the books YOU: okay.

SOLUTION: Yes

PROBLEM: THEM: i want the balls and hat YOU: you can have the hat but not all the balls THEM: how about two balls and the hat? YOU: i can take 2 balls and 1 hat.... is that what you are saying? THEM: no that's what i take YOU: you do not want the book? THEM: nope YOU: hmmm, how bad do you want that hat? THEM: i want that hat and two other items YOU: i guess you can have the hat and 1 ball.... THEM: no, two items and the hat YOU: no deal.

SOLUTION: No

PROBLEM: THEM: evening! how would it sound to you if you got to keep every single hat? i'll be happy with the book and both balls. YOU: no deal. i will take the hats and one ball and you can have the rest THEM: i absolutely can't part with a ball. i'm prepared to let you have the book and the hats, though. YOU: deal.

SOLUTION:
Yes