If the length of a rectangle is decreased by 6 cm and the width is increased by 3 cm, the result will be a square, the area of which will be 27 cm2 smaller than the area of the rectangle. Find the area of the rectangle.