TASK DEFINITION: Given a negotiation between two participants, answer 'Yes' if both participants agree to the deal, otherwise answer 'No'.
PROBLEM: THEM: ill giv eyou the hats YOU: hats are 0. i'd like books. you can have the rest. THEM: no deal you can have the hats YOU: i can do two books and and 1 ball. THEM: no deal you can have hats YOU: seriously? if you don't even try i'm going to leave a comment after we no deal. THEM: are you mad?

SOLUTION: No

PROBLEM: THEM: i just want the balls YOU: and so you shall have them, if i get the rest THEM: deal.

SOLUTION: Yes

PROBLEM: THEM: i would like the ball and both hats. YOU: i would like the ball and one book. you can have the hats and one book. THEM: i can't give up the ball YOU: i need the ball. you can have everything else. THEM: i need the ball as well, i can't do the deal without the ball and at least 1 hat YOU: i don't need the hats. you can have them. THEM: i can't give up the ball though. YOU: i need the ball. you can have everything else. THEM: no deal. YOU: what are the books worth to you? THEM: nothing. YOU: okay, you can have the ball if i get both books. THEM: so you get both books and i get the rest? YOU: sure.

SOLUTION:
Yes