Fabian is shopping at a nearby supermarket. He wants to buy 5 kilograms of apples, 3 packs of sugar, and 500 grams of walnuts. One kilogram of apples costs $2, and one kilogram of walnuts costs $6. One pack of sugar is $1 cheaper than one kilogram of apples. How much Fabian needs to pay for the items he wants to buy?
The apples cost Fabian 5 kg * $2/kg = $<<5*2=10>>10.
For the walnuts Fabian needs to pay 0.5 kg * $6 = $<<0.5*6=3>>3.
One pack of sugar costs $2 - $1 = $<<2-1=1>>1.
So Fabian will pay $1/pack * 3 = $<<1*3=3>>3 for sugar.
In total, Fabian needs to pay $10 + $3 + $3 = $<<10+3+3=16>>16.
#### 16