Answer:
Considering a triangle like the one of the figures, you can obtain the total magnetic force applied on it like the addition of the forces applied to each of the 3 sides.
Been the magnetic force formula:

For each segment:
Segment 1 (from [0,0,0] to [a,0,0]):

Segment 2 (from [a,0,0] to [0,a,0]):

Segment 3 (From [0,a,0] to [0,0,0]):

Total force on the wire loop:
