17: The conditions give (in the same order):

Now make a union of these possibilities.

Answer