(quantity bought in the 1st purchase * purchase price + quantity bought in the 2nd purchase * purchase price) / total quantity purchased = average purchase price