One side of a rectangle is 5 feet longer than the other side. The diagonal of the rectangle is a side of a square. The area of the part of the square that doesn't overlap with the rectangle is 61 square feet. Find the lengths of the sides of the rectangle