Let $x be the cost of each box of apples,
200x - 300 = 160x + 180
40 x = 480
x = 12
Each box of apples costs $12.
He used up $12 x 160 = $1920
He now have 50 x 160 = 8000 apples.
He sold 8000 - 95 apples which is 7905 apples.
He got $(7905 x .3) = 2371.5 Hope my mental calculation is correct.
Profit = 2371.5 - 1920 = $451.5