headlights renew wiring

I have 9003/HB1 oem plug wiring with 9003 bulbs but 9003 bulbs isnt fit my headlight, suppose be use the 9004 (HB1) bulbs also plug wiring not fit 9004 bulbs… grr i went the shop i brought it new plug wiring for 9004/9007

that new plug wiring has blue, yellow, and black wires

how can i fix my car’s headlight wire for correctly to connect oem wiring with new (HB1) plug wiring?