Becker F3 - Marketable Securities

Hello all, I am using Becker and preparing for FAR. I am reviewing chapter 3 and while going through the solution of problem on f3-8 (point-4) i was little confused as how the loss of security GHI for $25000 from yr 1 is carry forwarded to yr 2 and showing profit instead of loss. I was clear when i was doing it for the first time but now not getting it after a week when doing revision for that chapter. Please help!!!!