Calculate Profit, Type of Profit & Equilibrium to get Maximum Profit