how to use a grid and lenghts of line segments to give a geometric argument