The coordinates of point A, (x1, y1)=(5, 2).
The coordinates of point C, (x2, y2)=(9, 0).
Let (xm,ym) be the coordinates of the midpoint B.
Using midpoint formula, coordinates of the midpoint B can be found as,

The slope of the line AC is,

The slope of the line perpendicular to AC is,

Now using slope-point formula, the equation of a line perpendicular to AC and passing through point B can be found as,

Therefore, the equation of a line perpendicular to AC and passing through point B is y=2x-13.