Reg Wash Sales

This question is part of a Becker simulation: "Taxpayer purchased 500 shares of Southwestern Energy Corp for $10/share on 7/15/05. TP sold the 500 shares on 3/2/08 for $7/share. On 3/31/08, the taxpayer purchased 500 shares of southwestern energy for $8/share, sold the entire lot for $9/share on 10/31/08 and did not repurchase. Calc 2008 info." The answers are as follows: Proceeds: $4,500 Basis: $5,500 gain or (loss): $1,000 Amnt to be reported on tax return: $1,000 Now I know why the basis is 5500 because of was sales of 1500. 4000+1500=5500 My problem comes in when looking at the gain. Becker says there is a $1,000 gain but gives no explanation. I am calculating a loss of 1,000 by taking the realized loss of 1,500 and subtracting the 500 gain on the sale (4500-4000). Does anyone have any insite on how they are calcuating a gain in this situation. My test is in less than a week, any insite would be a great help. Thanks!!!