Answer:
The core function of firms is to fulfill the demand of the consumer. They either create a need/demand and then provide a solution to cater to that.
In the process of doing so, the firm needs to study the market carefully and define their target market. Then they must build their products exactly to the customers taste and price it according to the target class they have decided.
Last but the least, market it effectively so people become aware of the existence of the product and it starts selling. The more the sales, the more the profits earned by the firm.