How can be configured this promo: Buy 2X get 1Y free ?
Of course, if in cart will be 4X will be added 2Y free, etc.
You need to use shopping cart price rules to create such a promotion in your store. Check out this extension for that https://amasty.com/special-promotions.html
And here is an example: