Price rate and final total are different answers
一公斤十二元 is a rate: twelve yuan for one kilogram. 一共八元 is the total for the fruit selected later. Do not multiply the number of apples by twelve, because twelve is not stated as a per-apple price. The transcript never tells you the weight of those two apples, so you cannot recover their individual price from a count alone.