Step-#1:
Ignore the wire on the right.
Find the strength and direction of the magnetic field at P,
caused by the wire on the left, 0.04m away, carrying 5.0A
of current upward.
Write it down.
Step #2:
Now, ignore the wire on the left.
Find the strength and direction of the magnetic field at P,
caused by the wire on the right, 0.04m away, carrying 8.0A
of current downward.
Write it down.
Step #3:
Take the two sets of magnitude and direction that you wrote down
and ADD them.
The total magnetic field at P is the SUM of (the field due to the left wire)
PLUS (the field due to the right wire).
So just calculate them separately, then addum up.