If you want to teach in a public high school, you have to obtain a local career editor in addition to the high school math teacher qualification certificate. If you graduate from history major, it is not difficult to get the qualification certificate of high school math teacher, but you can register for the exam, as long as you meet the bachelor degree or above.
Teaching in private schools does not need to obtain career establishment, but the mathematics teacher qualification certificate still needs to be tested.