x and y measurements from different references

From the For-loop: The X  Distance Between the Point (30, 17) and Point
(157, 17) is 127
From the For-loop: The Y Line Distance Between the Point (157, 17) and
Point (30, 71) is 54
From the For-loop: The X  Distance Between the Point (30, 71) and Point
(157, 71) is 127
From the For-loop: The Y Line Distance Between the Point (157, 71) and
Point (30, 17) is 54