The first AND gate has the S input and the second has the R input. Both share a clock signal. The cross-coupled NOR gates form the S-R flip-flop. The S and R inputs are only active when the clock is high. The second NOR gate is the output (green), while the first NOR gate is the inverted output (blue).