So I am supposed to solve a push button problem and draw the circuit, using any gates and multiplexers.

So the problem reads:

Design a sequential circuit which will output Z = 1 for exactly four clock cycles each time a person pushes a button ( which sets X=1) . Since clock is fast, X may still be 1 when the four Z=1 output have been generated. Therefore, after Z is 1 for four clock cycles, Z goes to 0, until X returns to 0 and then becomes 1 again.

So anyway I uploaded a photo of how far I got until I got stuck, I am not sure my state table is correct, any input would be appreciated.

Thanks