The perimeter of a rectangle is 42 cm and the area is 80 cm². Write an equation to model the situation and find the dimensions of the rectangle.