First, using the Pythagorean theorem, calculate the hypotenuse of the right triangle.
h =√(base2+perpendicular2)
h = √(32+42)
h = √(9 + 16)
h = √25
Or, h = 5 cm
So, the perimeter of the triangle = 3 + 4 + 5 = 12 cm.