let x be the number of days before the steer is sold. the money is in units of cents

Profit = Revenue - Cost

we want to maximize Profit. Now,

Cost = 80x

Revenue = 165(135 + 3.5x) - x

now find the formula for the profit and maximize it. do you understand how i got those equations?