need help...I am new here..can't understand the average prices..how does that work.?

will get profit till the avg selling price..what if sell on high prices?