Answer:
You earned $700
Step-by-step explanation:
Nobody looks at this but technically you start with -900 + 1300 that you earn leaves you at 400 gained. Then -1400 because you sold it again it is in -1000. + the 1700 you gained at the end. The revenue left is of $700.
I hope it helps!