Как данная запись выводит нужную сумму?
Apple.applesPrice = Apple.applesPrice + applesPrice;