The magnetic field B generated by wire 1 at distance r (where wire 2 is located) is

where I1 is the current in wire 1. So, the force exerted on a segment

of wire 2 is

By susbstituting B inside the expression of F, we find the formula for the force per unit of length between the two wires:

where r is the distance between the two wires.
By susbstituting the numbers of the problem, we get
