Well ,if that is the case ,the rectangle sides must have a two sides shorter than the other sides and the square must have equal sides like for example their perimeter is 54 the length of the rectangle must have 9cm and its width must have 18 and for the square all of its sides must Measures 13.5 Hope it helps!!!