math help, need to do the min and the maximum and it needs to be in algebraic form

my dad sells hvac and he needs to sell x amt of furnaces from Nov-March

How do I write that algerbraically and solve it

p- profit

and probably need o operating costs