We define midpoint formula as

Also here are the coordinates of every point in variables so you won't get confused.

Which means there are two equations. One to find x of point X and one to find y of point X.

So point X has coordinates:

Hope this helps.
r3t40