The hypotenuse of a right-angled triangle is 1 metre less than twice the shortest side. If the third side is 1 metre more than the shortest side, find the sides of the triangle.