profit and loss problems shortcuts