40,000
Half 160 to 80, and double 250 to 500. Then, half 80 again to 40, and double 500 again to 1000. Then, 160(250) = 80(500) = 40(1000) = 40000.