Inputs a and B and does the below functions and A and B are both 4 bit bumbers

Add A + B

Subtract A − B

and A AND B (bitwise AND)

or A OR B (bitwise OR)

nand A NAND B (bitwise NAND)

nor A NOR B (bitwise NOR)

SetLessThan 0001 if A < B, 0000 otherwise

SetGreaterThan 0001 if A > B, 0000 otherwise

The logical functions (and, or, nand, nor) are all bitwise. Cout is irrelevant

I can only use 74x153 multiplexers but I can use any AND or other functions but no more multiplexers

I figure if I can get the logic down I can design the circuit but the logic is hazy for me