This bears SOME resemblance to the "distance formula" taught in geometry classes.
The distance d between points (x[sub:2pdygqu3]1[/sub:2pdygqu3], y[sub:2pdygqu3]1[/sub:2pdygqu3]) and (x[sub:2pdygqu3]2[/sub:2pdygqu3], y[sub:2pdygqu3]2[/sub:2pdygqu3]) is found using this formula:
d = sqrt[ (x[sub:2pdygqu3]2[/sub:2pdygqu3] - x[sub:2pdygqu3]1[/sub:2pdygqu3])[sup:2pdygqu3]2[/sup:2pdygqu3] + (y[sub:2pdygqu3]2[/sub:2pdygqu3] - y[sub:2pdygqu3]1[/sub:2pdygqu3])[sup:2pdygqu3]2[/sup:2pdygqu3] ]
Without seeing the entire problem, it's hard to tell....