regarding selling stocks

HI,
If i am buying some 50 stocks of a company X… and after sometime buying the same company X’s 10 stock…
now how to sell them…in which order it will consider selling…

First In, First Out. Shares purchased first (50 in your case) will be the ones sold earlier.