A Redstone circuit that will only fire if a specific input is turned on?

Solution 1:

I figured it out, just put a piston connected to B that would interrupt a when B was on, and had A lead to the output. Here is how to make it:

Redstone circuit as described above

Solution 2:

Place 3 blocks in a row. On the leftmost block, put a lever on the side facing you, and a redstone torch on top. On the other two blocks, place redstone on top and a lever on the rightmost block, again on the side facing you. On the other side, place a torch facing away on the middle block, which will be your output. The lamps are aesthetics, not necessary.