Answer:
Part a)

Part b)

Step-by-step explanation:
Part a)
Since the two magnetic field is in same direction
so the net magnetic field is algebraic sum of magnetic field due to both
so here magnetic field of wire is given as

here we know that
I = 2 A
r = 5 cm
so we will have


So net magnetic field is given as

Part b)
When direction of current is reversed then the direction of magnetic field is also reversed
So we will have
