Given the endpoints of a general segment:
[tex]\begin{gathered} (x_1,y_1) \\ (x_2,y_2) \end{gathered}[/tex]The midpoint of the segment can be calculated as:
[tex]\text{Midpoint}_{}\colon(\frac{x_1+x_2}{2},\frac{y_1+y_2}{2})[/tex]Now, if we have two points (2,5) and (0,4), we identify:
[tex]\begin{gathered} x_1=2 \\ y_1=5 \\ x_2=0 \\ y_2=4 \end{gathered}[/tex]Then, using the general expression of the midpoint:
[tex]\text{Midpoint}_{}\colon(\frac{2+0}{2},\frac{5+4}{2})=(1,\frac{9}{2})[/tex]