> For the complete documentation index, see [llms.txt](https://help.dollarlabs.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.dollarlabs.io/dollarlabs-ultimate-discounts/discount-engine-v1/examples-v1/product-discount-examples-v1/buy-x-items-specified-to-get-a-discount-on-y-items.-buy-x-get-y-bx-gy.md).

# Buy X items specified to get a discount on Y items. (Buy X Get Y - Bx Gy)

Video walkthrough of a Buy X to get Y discount with an example&#x20;

{% embed url="<https://drive.google.com/file/d/1g1KBbPxYgW-p9XmKOrWBRJ3UKrci4dA7/view?usp=sharing>" %}

This discount offers a 100% discount on "The Collection Snowboard: Hydrogen" when the following conditions are met:

1. The cart subtotal is greater than, 1000.
2. The cart contains all the specified products: Hydrogen, Liquid, or Oxygen from "The Collection Snowboard."
3. The discount applies specifically to "The Collection Snowboard: Hydrogen" and only if there is exactly one unit of it in the cart.

**Example Scenario:**

If a customer's cart has a subtotal of 3700 and includes:

* 1 unit of Hydrogen (1200)
* 2 units of Liquid (1600)
* 1 unit of Oxygen (900)

The discount will apply, making the Hydrogen snowboard free, and the customer will pay, 2500 instead of 3700.

<figure><img src="/files/UoeAIqXOrShUlbNH8WYu" alt=""><figcaption></figcaption></figure>
