They are similar. Just simplify their respective measurement of sides.
For the first, just divide it by 2. Therefore, their sides will become
a=3cm
b=4cm
c=5cm
For the second triangle, just divide it by 3. Therefore,
a=3cm
b=4cm
c=5cm
THUS, THE TWO TRIANGLES ARE SIMILAR