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 one ball and one hat YOU: deal.

SOLUTION: Yes

PROBLEM: THEM: if i can have the book and the ball you can have the hats YOU: i have to have the ball THEM: you can have the ball if i can have everything else YOU: how about the ball and 1 hat THEM: okay that works.

SOLUTION: Yes

PROBLEM: THEM: i'll tke the balls and hat if that's ok? YOU: i need the hat and 2 books THEM: ok YOU: thanks.

SOLUTION:
Yes