Hi, Jadyn,
We have two unknows, so look for two equations.
The length (L) is 5 less than the width (W). Line 1
The perimeter is 2*W + 2*L and is 54 cm. Line 2
Substitute line 1 for L into the line 2 equation. That way we can eliminate L and rearrange it on line 4, then solve on line 5. Since we now know W, we can find L via line 6.
I hope this hepls,
Bob