I recommend using online calculators for example, look up your subject and then put “calculator” after it. Like for example, “Find the slope calculator”
6 runners, 3 medals, how many ways to give them? well, runner say 2 could get gold or not, bronze or not and silver or not, and so can any other runnner, and the order "does matter", it makes a distinction, thus, is a Permutation