I’ve taken the Scuba Diving written test twice and can’t pass. Any tips to help. I am terrible in math.

Math shouldn’t be an issue if you made it past grade 6. As for tables, I believe they let you use an ERDP now on the exam ( I’m not in favor of that, but I don’t make the rules).
Most of the questions on the exam are common sense or included in your manual, so there should be no issue there either. If you read the manual, did the quizzes, you should pass the exam. If it’s the tables that are bogging you down, they actually require little math at all. If there’s math, it’s a multiple dive day and you’re simply using addition. Most of it is just taking known information to discover unknown information. If you’re unsure of the steps involved, that’s what you paid your Instructor for…ask him/her.