The larger leg of a right triangle is 3 cm longer than its smaller leg. The hypotenuse is 6 cm longer than the smaller leg. How many centimeters long is the smaller leg?