A sign in the shape of a right triangle has one leg that is 1 inch(es) longer than the other leg. What is the length of the shorter leg if the perimeter is 12 ​inches?