riddle about square and lines to center

No.12334794 ViewReplyOriginalReport
Question, given a square with side length = x, you have 2x number of lines that go from the edge of he square to the center. These could be lines of shortest distance x/2, or longest distance sqrt(2) * x / 2, or something in between. How do you find the total length of all such lines if only given the side length?