Step 1: Open compass to just over half way of the line.
Step 2: Sharp point at point A, make an arc.
Step 3: Sharp point at point B, make an arc.
Step 4: with a ruler, join the intersections of the arc.
And you should end up with something that looks just like this: