If a line has a midpoint at (2,5), and the endpoints are (0,0) and (4,y), what is the value of y? Please explain each step for a better understanding:)