Two T-flip flops are connected as a synchronous counter that goes through the following QBQA sequence
TA=1;TB=QB
TA=¯¯¯¯QB;TB=1
TA=QA¯¯¯¯QB;TB=0
TA=¯¯¯¯QAQB;TB=1