Compute the coordinate for rectangle 2