Understand the profit and loss account with a detailed proforma problem and its solution.