Be careful with this calculation. In symbols p R C P Q F V Q will be p R C 12 Q 40000. Profit Percentage is of two types a Markup expressed as a percentage of cost price while b Profit margin is the percentage calculated using the selling price.
Gain gain CP 100 IV.
To find SP when CP and gain or loss are given. Now divide 10000 by 14 and get 7142857. Following is how you would do the calculation assuming the commission fee is 0. Set profit to equal revenue minus cost.