Well the good news is that by now you have forgotten quite a bit of all that stuff, so when the Navy teaches it to you their way, it won't hurt so bad trying to force out the old stuff.
But on a serious note, you will not see anything past some advanced algebra and pre-calculus like logrithms, exponents, etc. You don't get into deriviatives, limits, or anything like that. Most of what you will see will be taught to you the Navy way and you would be amazed how much comes screaming back into your head, usually carrying a red hot poker with it.
Chemistry is pretty basic stuff, like balancing chemical equations, electron shell theory, and pH calculations. You aren't going to be asked to come up with the chemical formula for "unobtainium"(Bonus points for whoever can name the movie that this was on). Once again the navy will provide you the method for which they want you to know it.