Assuming you are subject to U.S. tax laws, the $5.00 loss on the one share bought for $10 would be considered a wash sale. That loss would not be allowed and would instead be added to the basis of one of the 100 shares bought within 30 days of the sale.
If this was done in a single account, the...