The problem description: Design a sequential circuit with three flip-flops and one input x. When x = 0, count 0, 2, 3, 5, 6 and repeat. When x = 1, count 6, 5, 3, 2, 0 and repeat.

My problem is that I don't know how to turn this information into boolean expressions for each flip flop, which I can then turn into state diagrams and tables. I know how to write an expression once I have the circuit drawn out in front of me, but I don't understand flip-flops and counters well enough to move through this problem. Some guidance would be greatly appreciated as this problem is due in class tomorrow morning.

Thanks a lot, if you help me I'll pay you $5 on paypal.