Game Theory of Two Firms
Your answer is correct. Given that you have a net profit function once you substract the costs of the events, the way to proceed is differentiating that profit function, taking the behaviour of the other firm as fixed and setting that to 0.

Profit maximization involves producing upto the point where marginal benefits equal marginal costs and that is exactly what you do by differentiating and setting to 0.