Work Step by Step
Use the right hand rule. If you point the thumb of your right hand directly into the page, in the direction of the current, your fingers curl around the wire in a clockwise direction. This indicates the direction of the magnetic field lines. The magnetic field points to the left at location B.