In the diagram given the hanging mass m2 is adjusted until m1 is on the…