solution: Six books are removed from the shelves, so $24-6=18$ books remain.  Of these, $10-2=8$ are math books.  Therefore, $8/18=\boxed{\frac{4}{9}}$ of the books remaining are math books.
prompt.content: <|im_start|>system
  You are a helpful assistant.<|im_end|>
  <|im_start|>user
  A bookcase has 3 shelves with a total of 24 books. The top shelf has 8 mystery books. The middle shelf has 10 math books. The bottom shelf has 6 science books. Two books are now taken off each shelf. What fraction of the books remaining on the three shelves are math books? Express your answer as a common fraction.
  Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
  <|im_start|>assistant
  
prompt.role: user
extra_info.answer: \frac{4}{9}
extra_info.question: A bookcase has 3 shelves with a total of 24 books. The top shelf has 8 mystery books. The middle shelf has 10 math books. The bottom shelf has 6 science books. Two books are now taken off each shelf. What fraction of the books remaining on the three shelves are math books? Express your answer as a common fraction.
extra_info.split: test