Retail: work back from the shelf
Start with the shelf price shoppers will pay, subtract the retailer's margin to find your wholesale price, then check that wholesale still covers your landed cost and your own margin. As an illustration only: if a buyer told you they need a 50% margin on a $40 shelf price, your wholesale price would be $20. Ask each buyer for their actual terms.