The school prepared 40 x 20 = <<40*20=800>>800 chairs.
So, 800 - 10 = <<800-10=790>>790 chairs were taken.
#### 790