For a long straight wire the field is proportional to the current and inversely proportional to the distance:
B∝rI
(a) The current is unchanged and the distance has been tripled, from 3 cm to 9 cm. Since B∝1/r, the field falls to one third:
B′=3B
(b) Being three times further away costs a factor of three, so the current must be made three times larger to win it back:
I′=3×2 A=6 A
A current of 6 A at 9 cm produces the same field B as 2 A at 3 cm.