How does a business determine the markup on a product or service?

by matching the closest competitor

by checking online prices

by calculating the profit that will keep the business going

by considering how much the product is worth to the consumer