The centre of mass or mass centre is the mean location of all the mass in a system. In the case of a rigid body, the…