i have a problem with pedal position sensor, on 2002 Toyota RAV4

the wires on it were cut by probably rat i got another connector and the wires are in different codes.... assist me on how i can connect them... wiring diagram

Asked by for the 2002 Toyota RAV4
Line both plugs the same way and do 1 wire at a time. Start on 1 side, match position of wires on plug to plug.