5tl ye a adet
8tl ye b adet
10tl ye c adet aldın diyelim

(5 x a)+(8 x b)+(10 x c) = Z
Z/(a+b+c) = ortalama maliyet