A sequential circuit has two JK flip-flops A and B, two inputs x and y, and one output z. The flip-flop input equations and circuit are
JA = Bx + B'y' KA = B'xy'
JB = A'x KB = A + xy'
z = Ax'y' + Bx'y'
Draw the logic diagram of the circuit