The perimeter of a rectangle is equal to 10. If the length is halved and the width is doubled, the new perimeter is increased by 4. What is the length of the original rectangle?​