The longest side of the right triangle is 2 feet more than the middle side and the middle side is 1 foot less than twice the shortest side. Find the length of the shortest side.