Fig. (9) Logic circuit for the next state of FF3.