The “more solid understanding” should have been gleaned by the first 2 responses - AP scores in relevant subjects are more important that Subject Tests, and a math Subject Test score is not a relevant subject anyway. Don’t worry about retakes until you actually have scores from the first attempt.