Add punctuation: If the companys earnings are greater than the costs it leads to profit to profit from
If the company's earnings are greater than the costs, it leads to profit, to profit from.