The perimeter of a triangle is the sum of its sides. So, we have
[tex] P = \overline{AB}+\overline{BC}+\overline{AC} [/tex]
We have an exact value for the perimeter, and variable expressions for the sides. Let's substitute the formula above with what we're given:
[tex] 54 = 3x+4x+5x = 12x [/tex]
If you divide both sides by 12, you have
[tex] x = \dfrac{54}{12} = 4.5 [/tex]
So, the lengths of the sides are
[tex] AB = 3x = 3\times 4.5 = 13.5 [/tex]
[tex] BC = 4x = 4\times 4.5 = 18 [/tex]
[tex] AC = 5x = 5\times 4.5 = 22.5 [/tex]