Different variables of the same object to calculate stock

Hello how are you, I have a question, I have to make several variables of a piece, that is, with the same piece I must have a variable that includes 2 pieces, the next variable must include 5 pieces. Always referring to the same piece, is there any way to do it?? Your collaboration would be very helpful, thank you very much!!

A screen shot would be useful to help us visualise what you are trying to do.
Show us what your data looks like, and the end result you are looking for.

Uploading: Captura de pantalla (8).png…
Of course, here for example I have under the arrow an object which has variants (1 and 2) that are the necessary quantities according to the type of order that is made, I need that according to the order that I make this piece takes the value of my variant, be it 1 or 2, as appropriate, to be able to reduce my stock efficiently

Uploading: Captura de pantalla (8).png…

Wait for the image to finish uploading before submitting your post.