The square root of 325 is 18.03
2(93+94)=374 . It is the answer it was obtained by trial and error method
If these four line segments are connected (kind of like a square) then only 4 endpoints are needed, but if they are all separate line segments, then you would need a maximum of 8 endpoints because any line segment has 2 endpoints and 4 line segments with 2 endpoints a piece equals 8 endpoints in total.
I hope this helped! :)