To solve this problem we need to consider the concept about Ampere's Law.
The Ampere's law say that,
[tex]F = \frac{\mu_0 I_1I_2}{2\pi R}[/tex]
Where,
F= Mangetic field
[tex]\mu_0 =[/tex]Permeability of free space [tex](4\pi*10^{-7}})[/tex]
I =current
R= Radius from the wire in meters.
A) At the first case the force on wire is repulsive, replacing our values
[tex]F = \frac{4\pi*10^{-7}}*2*5}{2\pi *10*10^{-2}}[/tex]
[tex]F= 2*10^{-5}N \rightarrow[/tex] In repulsive direction.
B) At the second case de Force flow in the same direction, then we have,
[tex]F = \frac{4\pi*10^{-7}}*2*5}{2\pi *10*10^{-2}}[/tex]
[tex]F= 2*10^{-5}N \rightarrow[/tex] In attractive direction