Here’s a link to a calculator where you can find out formulas and calculate permutations (with or without repetition allowed) and same thing for permutations
https://www.statisticshowto.com/calculators/permutation-calculator-and-combination-calculator/