class 7 math profit-loss