Current flowing in wire A, IA = 8.0 A
Current flowing in wire B, IB = 5.0 A
Distance between the two wires, r = 4.0 cm = 0.04 m
Length of a section of wire A, L = 10 cm = 0.1 m
Force exerted on length L due to the magnetic field is given as:

The magnitude of force is 2 × 10–5 N. This is an attractive force normal to A towards B because the direction of the currents in the wires is the same.