If the length of a side of a square is increased by 3 cm, the perimeter of the new square is 40 cm more than twice the length of a side of the original square. Find the dimensions of the original square