Math Modeling-max profit with 2 firms