Automaton for pulse generation – when does it change states?

Hello, I'm currently despairing over this task because I don't know what to do. I'm supposed to create an automaton that generates the output frequencies l and r using the input frequencies x0 and x1. I don't understand when this machine switches to left-hand rotation and when it switches to right-hand rotation. Unfortunately, I can't…