find the dimensions of the rectangle