Alright , so basically the permiter that is given is like this:
327+327 +258+258 cm = 1170cm
now this can also be written as: 2(327+258)cm =1170cm
wait, its given as 258 and 218 cm. the width should be same actually , then only you can simplify it in order to get it in an expression ( simplest form)