Well Y1 is simple, seems a copper trace will do.
For Y2 = (not A) and B you can try rewriting it to a combination or NAND or NOR gates and pick a 7400 ic.
Use the ideas that (not X) == (x nand x), not (x and y) == x nand y, and rewrite your expression by replacing all logical operators by their equivalent using only NAND operators.
I.e.,
1. Y2 = (not A) and B
==
2. (A nand A) and B
==
3. not not ( (A nand A) and B) )
==
4. not ( (A nand A) nand B)
==
5. ( (A nand A) nand B) nand ( (A nand A) nand B)
So a single 7400 would work. Equivalent using NOR gates is also possible, and mux ic's can very often be used just the same.