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

THEM: book and one hat for me YOU: you can have the book and 2 hats. THEM: deal YOU: great!
Yes

THEM: if i can have the hats and the balls you can have the book YOU: i'll take the hats and book. you can have the basketballs. THEM: i need at least one hat as well YOU: the balls and book are of little value. i have to have the hats to make it a decent deal. THEM: would you be willing to accept one hat and the book? YOU: you have no need for the book? THEM: it is of little value to me YOU: would you be willing to take the balls and book and let me have both hats? THEM: okay deal. YOU: sounds good. deal!
Yes

THEM: hello. i would like both hats and a ball. YOU: how about you get both hats and a book? THEM: i need both hats and a ball for the deal. YOU: ok, i agree.
Yes