how to find the scale factor of a rectangle