Consider a free-body diagram (FBD) of the large gear. A torque from shaft A is applied to the large gear in the direction shown.