A sequential circuit with two D flip-flops A and B, two inputs X and Y, and one output Z is specified by the following input equations:
$D_A = X'B' + XY'$, $D_B = A' + Y'B$, $Z = YA'B$.
Draw the logic diagram, derive the state table and the state diagram of this circuit.