First

• Bought at 900

• Sold at 1200

• Profit = 1200 - 900 = 300

Second

• Bought at 1300

• Sold at 1600

• Profit = 1600 - 1300 = 300

Total profit = 300 + 300 = 600