Hello! Here’s one question from the Data Analysis Progress Quiz whose solution I’m having trouble understanding

We obviously need to find X here. My initial process was taking the average of x to 25 and going…
( ((25-x+1)(25+x))/2 / (25-x+1) ) = 17.5
Basically, the numerator’s the sum of the numbers in the interval over the amount of numbers in the interval. This ends up creating some insane algebra, none of which is relevant now because the way Greg solves it was insanely simple, and but I’m not sure how?
In it, he just goes (25+x)/2 = 17.5 but I don’t get how the numerator can just be 25+x because if we’re on an interval, we’d be adding much more than just those two numbers meaning the numerator would be huge and we’d need to account for every number in the interval.
My one idea is that the numbers from x to 25 are evenly spaced out, so we can just do that add the end and beginning trick and it’d resolve all the same and that’s why we can just put 25+x into the numerator?