I'm sure there are a few other ways, like stated above, but what I ended up doing when I upgraded my rear lights was just trial and error. Good Luck, you'll figure it out.
https://www.youtube.com/@Truckelectrics
I probably should have read what the guy above you said before I installed my...