Two legs of a right triangle are two consecutive even integers while the hypotenuse is 10 inches. What are the measure of both legs?