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 the balls and book, you can have the hats YOU: you can have the balls. i'll take the hat and one book. THEM: i need both balls and books to get over half YOU: yes. both balls are yours. i'd like all the hats and one book. THEM: ok deal.

SOLUTION: Yes

PROBLEM: THEM: i want the hat the rest you can have YOU: no way, i want the hat and 1 ball, you can have the rest. THEM: cant do that i need the hat rest is yours YOU: fine, i will agree to 4 balls and a book. agreed? THEM: yes.

SOLUTION: Yes

PROBLEM: THEM: hey, i want the hats and balls YOU: how about you take all the hats ; i'll take the balls and the book. THEM: nope YOU: alright, i take book and 1 ball ; you take hats and 1 ball? THEM: hmmm, i want both balls though YOU: i understand that, but we can deduce the point value from what's being shown. i'm willing to go even with you ; i'll take book and 1 ball. you take rest.

SOLUTION:
Yes