A woman bought a necklace for $300 and then sold it for $600. She bought it back for $700 and sold it again for $900. How much did she gain or lose on these transactions?