The perimeter of a triangle is 12 centimetre and the ratio of their sides is 3:4:5

let the sides be 3x, 4x, and 5x

solve for x and sub into my definitions

3x+4x+5x = 12

you should be able to do it in your head.

Did you notice that your triangle is also right-angled?