Rectangle Perimeters and Areas

Find the dimensions of all rectangles that have area equal
numerically to M times the perimeter, where both the length and
the width are whole numbers. (M=1,2,3,4,5)

Repeat for perimeter equal to M times the area.
Source: Extended from a puzzle by Joe (cschen@xnet.com) on
rec.puzzles January, 1996.
Solution
Mail to Ken