Determine margin of safety

NewB Company sells bags with a selling price of P10,000per bagand a variable cost of P4,000 per unit. NewB’s monthly fixedexpenseisP3,000,000. Let Q be the number of units manufactured a. Construct the total cost function b. Construct the profit function c. Compute the contribution margin ratio. d. Compute total revenues needed to break even. e. Determine the breakeven point in units sold and sales in pesos. f. Compute required sales needed to achieve a target net incomeof₱1,500,000 in units sold and sales in pesos g. Determine margin of safety if current sales is P8,750,000