Problems on calculating the overall profit or loss

Problems on calculating the overall profit or loss