A horizontal bar with a mass m suspended from one end is held by a cord with tension T, fastened at a distance D from the end of the bar that is

A horizontal bar with a mass m suspendedfrom one end is held by a cord with tensionT, fastened at a distance D from the endof the bar that is attached to a wall with africtionless pin.What is the torque about the pin exertedon the bar by the cord?