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