Two gears A and B are connected. A is smaller than B. A clockwise arrow indicates T subscript small on gear A.

Let's go through the equilibrium of gears one more time...this time, using gear diameters.

Consider the FBD of the small gear. Shaft A applies a torque to the gear in the direction shown.