Can you help me po to solve this?

A motor A delivers 3000 hp to the shaft at 1500 rev/min of which 1000 hp is removed by gear B and 2000 hp is removed by gear C. Determine (a) the maximum shear stress in the shaft; and (b) the angle of twist of end D relative to end A. Use G=12×10^6 psi for steel, and assume that friction at bearing D is negligible.
a.) maximum shear stress in the shaft, maximum shear stress.
b.) angle of twist of end 'D' relative to end of A, (Theta D/A)