A pulley is a mechanism of a wheel on an axle or shaft that may have a groove between two flanges around…