Apparently your confusion is coming from the different colors, as well as the different function names.

Keep in mind that the part you got from Advance Auto is intended for AUTO trailers, not motorcycle trailers. Yes, there is a BIG difference.

An Automotive trailer 5-pin plug can have several different configurations, too, so there is even more confusion. At a minimum, you are going to have tail lights and ground. Beyond that, if your TRAILER turn signals are also your brake lights, you will have wires for LEFT turn/brake and RIGHT turn/brake. The fifth wire can be for anything else, like charging a small battery, powering a dome light, reverse lights, electric trailer brakes, etc.

If your trailer has SEPARATE turn signals (hopefully yellow), your wires are going to be ground, tail, brake, left turn, right turn.

My suggestion would be to start with the bike and identify function, like TAIL (running) lights. On the bike, that is a brown wire. Happily, it is also a brown wire on the trailer plug. Move to the next FUNCTION, let's choose GROUND. On the bike, that is a green wire. On the trailer plug, it is white. Do they line up at the plug interface? If they do, great. If they don't, make a mental adjustment that your GROUND wire will be "xxx" color on the trailer plug, instead of white. Continue with all the other FUNCTIONS.

Remember that electrons are color-blind. And, it's dark inside the wire, so they can't see (and don't care) what color wire they are in. All they know is they have a job to do. If they are in the brake line from the bike, they need to go to the brake line on the trailer. Colors don't matter, as long as the function is good. Yes there are "standard" colors, but from one industry to another, and one manufacturer to another, those standards can, and DO, change.

.