The midpoint is 0.20 m from each magnet, on the axis of both. Each gives
B=4πμ0⋅r32m=10−7×(0.20)32m
directed along its own moment.

(a) Same direction, so the fields add:
B=10−7×8×10−32(0.50+0.80)≈3.3×10−5 T
(b) Opposite directions, so the fields subtract:
B=10−7×8×10−32(0.80−0.50)=7.5×10−6 T
along the moment of the stronger magnet.