Step-by-step 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).

so the forces on the near and far wires are


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
