A bar AB is balanced horizontally on two knife edges as illustrated as in the…