A ladder rests against a wall with its lower end at a distance x from the wall and its upper end at a height 2x above the floor. If the lower end slides through a distance y perpendicular to the edge between the floor and the wall, by how much does the upper end slide?