Recall that a positive rotation angle rotates
in a positive right-hand-rule sense about the +x axis.
Equating the arclengths turned by the two gears and accounting for the opposite rotation direction, the angle turned by gear C can be computed from:
