The total cost for the peaches was 400* $0.40 =$<<400*0.4=160>>160
The total count of 10 dollar purchases Kataleya received a discount on was $160/$10 = 16
If each purchase had a $2 discount, the total discount she received is 16*$2 = $<<16*2=32>>32
She purchased the peaches at $160-$32 = $<<160-32=128>>128
#### 128