Low Beams and Highbeams both went out

Hell you can "rig" it on the spot, there are only three wires.

Turn on the light switch, find the 1 of 3 that is hot.

Try it to the other two and find low beams.

Jumper them together and drive home.