Hypotenuse cannot be the same length as one of the legs.....
sooo
6 + a +c = 12
6^2 +a^2 = c^2 or c = sqrt (36 + a2 ) sub this into the forst equation
6 + a + sqrt (36+a^2) = 12
sqrt(36+a^2) = 6-a
36 + a^2 = 36 - 12a + a^2 uh oh....this is not a right triangle possibiity !
Guess I should have seen that ....if the hyptotenuse has to be longer than the leg of 6 the perimiter will be greater than 12 !