The gate implementation of JK Flip Flop is
And the Truth Tables obtained for JK Flip Flop is
From this we obtain Next State Q (t+1) = J Q' + k' Q
Now from the given Question, we see that the Input of both J & K = X hence substitute X in place of both J & K and Q1 in place of Q.
You'll find your answer