maximum profit at level Q

What’s the fastest way to solve a question asking for which level of quantity (Q) a firm will generate the maximum profit. The questions generally gives table with columns Q, Price and Total cost. It’s an easy question but quite time consuming to solve with my method of doing a simple arithmetic for each column. Is there faster method of solving questions like that?