Using 2 Data Flip Flops to create an up counter from 0 to 3 and repeats
You just need to apply the same technique, but substitute the truth table for a DFF where you have the SRFF. Instead of separate equations for A Set, A Reset, etc., you'll have two equations &mdash; one for the D input of A and one for the D input of B.