One of the legs of a right triangle is twice as long as the other, and perimeter of the triangle is 28. Find the lengths of all three sides, to three decimal places