Explanation:
The net magnetic force acting on the loop is the superposition of the forces on each side of the loop. The forces on the two sides perpendicular to the long straight wire will cancel (right hand rule). The magnitude of the magnetic force between two wires with currents I_1 = 12 A and I_2 = 5 A of length L = 0.5 m ( assuming not given in question).
[tex]F = \frac{\mu_o I_1 I_2 L}{2 \pi d}[/tex]
so the forces on the near and far wires are
[tex]F_n = 2.7\times 10^{-4} N[/tex]
[tex]F_f = 1.2\times 10^{-4} N[/tex]
The force F_n is an attractive one, while F_f is a repulsive one (right hand rule). The magnitude of the force is therefore
F = F_n - F_f
[tex]F=1.5\times10^{-4}[/tex]