On the Q, one side is low beam ... you got a power wire and a ground wire. The other side is high beam ... you got a power wire and a ground wire.
On the Yamaha, one prong is ground, one is low beam power, one is high beam power.
You gotta decide how stock you want to leave your Q wiring.
You could just tape up one of the ground wires.
And then use the other ground for the Y light.
Then figure out which Q wire is High and which is Low, and figure out same for the Y light.
Then figure out do you want to cut your Q wiring and install a Y plug to fit into the Y light?
Or leave the Q wiring alone and make up 3 short wires, where one end fits into the Q wiring and other end fits into the Y light.
Hope that makes sense.