Given a negotiation between two participants, answer 'Yes' if both participants agree to the deal, otherwise answer 'No'.
Q: THEM: can i have the two hats and the books?  YOU: you can have 1 hat and the books.  THEM: i need the two hats  YOU: if you get both books than i need one hat.  THEM: i can have the two hats and one book?  YOU: yes.  THEM: then that's a deal.
A: 
Yes