Given a negotiation between two participants, answer 'Yes' if both participants agree to the deal, otherwise answer 'No'.

THEM: you keep all hats and i keep the rest YOU: that will not work for mei need 1 book and 3 hats THEM: ok so two hats and one book YOU: i need 3 hats THEM: ok fine YOU: 3 hats and 1 book for me deal.
Yes

THEM: hello. i would like the ball and 2 hats. YOU: the book and ball are both necessities to me. you can have all 4 hats. THEM: no thank you. YOU: i'll agree to you taking the ball, then. THEM: okay. thanks. so i take the ball and you the rest or what? YOU: you can take the ball and two hats. THEM: okay deal.
Yes

THEM: i'll take a basketball and a book YOU: i want the basketball as well. what value is the hat to you? THEM: if you take the ball i'll need the hat and all three books YOU: i want the basketball and one hat. THEM: can't do it YOU: fine, i will accept the hat and two books then.
Yes