The problem is as follows: obtain the function H = X + Y using only
You cannot use the complements of X and Y as inputs. Use as few of these logic gates as possible.
I eventually figured out the answer to be
but that was through trial and error. Is there a good way of solving this and similar problems?