Follow below steps for creating a buy X for $Y offer –
Login to the Shopify store and navigate to Apps > BOGO Upsell & Related Products.
Create a new BOGO offer.
Select Buy X For $ from the offer type.
Add the products/collections, trigger conditions and discounts as per the requirement then save.