The magnetic field B generated by wire 1 at distance r (where wire 2 is located) is
[tex]B= \frac{\mu _0 I_1}{2 \pi r} [/tex]
where I1 is the current in wire 1. So, the force exerted on a segment [tex]\Delta L[/tex] of wire 2 is
[tex]F=I_2 \Delta L B[/tex]
By susbstituting B inside the expression of F, we find the formula for the force per unit of length between the two wires:
[tex] \frac{F}{\Delta L}=\mu_0 \frac{I_1 I_2}{2 \pi r} [/tex]
where r is the distance between the two wires.
By susbstituting the numbers of the problem, we get
[tex] \frac{F}{\Delta L}=(4\pi \cdot 10^{-7} Tm/A ) \frac{(5.0 A)(8.0 A)}{2 \pi (0.30 m)}=2.7 \cdot 10^{-5}N [/tex]