Given a negotiation between two participants, answer 'Yes' if both participants agree to the deal, otherwise answer 'No'.
One example: THEM: i need the hats and the ball  YOU: i can give you one hat and the ball. i want 2 books and 1 hat  THEM: i have to have both hats and the ball or both hats and a book to make a deal  YOU: sorry, i won`t make a deal without a hat  THEM: if you take 1 hat i have to have everything else  YOU: sorry can`t do  THEM: no deal  YOU: yesh no deal, sorry  THEM: no deal  YOU: no deal.
Solution is here: No
Explanation: Both participants do not agree to the deal, so the answer is No.

Now, solve this: THEM: i like the balls and the book  YOU: would you be willing to part with one of those? either a ball or a book?  THEM: which one do you wangt?  YOU: either one is fine.  THEM: so i'll take the balls and the hats and you can have the book  YOU: i need the hats. i just need 1 more ball or the book.  THEM: i'll take 3 balls and you have the book and one hat  YOU: i really need both hats to make this deal work.  THEM: ok  YOU: so i get both hats and a book?
Solution:
Yes