You have describe a triangle in which the legs and hypotenuse are an arithmetic sequence with a common difference of 3 cm. The only right triangle with legs and hypotenuse in arithmetic sequence is the 3-4-5 right triangle (and similar).
The smaller leg of your triangle is 3*3 cm = 9 cm.