When you buy a stock and currently it is showing some profit .
And you buy the same stock again then both the stock will be at averaged price that is if other has loss from it cpm the it will be deducted from the net profit on the first stock you hold