finding the tensions in two ropes for a hanging object