For the school play, 40 rows of chairs were set up where there were 20 chairs in each row. If only 10 seats were not occupied, how many seats were taken?
Please reason step by step, and put your final answer within \boxed{}.
user