Here's all the math you need:

http://www.eleccircuit.com/lm338-lm3...or-calculator/

Best Regards.