The width of a certain rectangle is 5 inches less than the length. Find the dimensions of the rectangle if its perimeter is 42 in.