The perimeter of a triangle with two equal sides is 46 cm. If its base were lengthened by 4 cm and each leg were shortened by 7 cm, all three sides would be equal. Find the length of the base of the original triangle.