Finding the shorter side
The two rectangles are similar, so every pair of corresponding sides is in the same ratio. From the longer sides:
k=1218=23
The shorter sides must be in this same ratio:
shorter side of firstshorter side of second=23
8x=23
x=23×8=12 cm
Finding the ratio of the perimeters
perimeter of first=2(12+8)=40 cm
perimeter of second=2(18+12)=60 cm
perimeter of secondperimeter of first=6040=32
The perimeters are in the ratio 2:3, which is the same as the ratio of the corresponding sides — as expected for similar figures.