How to average the stock price

How do you calculate the average stock price over multiple trades?