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: if i can have the hat and three balls you can have the book and one ball  YOU: hat is also the only thing of value ; the only way i can give up the hat is if i can take everything else. i'm also open to the same offer reversed (you take everything and take the hat)  THEM: i will take the hat and you can have everything else. if that works for you  YOU: its not the best, but it seems fair enough, deal  THEM: okay thank you.
Solution:
Yes