Principle of moments.

It would be more advisable you use Google on this...