This teacher has the wrong mindset and is likely not in compliance with the 504. You may need to have a meeting with the school to make sure that the 504 is followed. If you do so, make sure you have all of the evidence, e.g., emails, etc. that shows your DS's math scores, his disabilities, and this teacher's refused to accommodate for them.