Two long parallel wires X and Y carry currents 3A and 5A each. if the…