2023 WSMO Accuracy Round Problems/Problem 2

Problem

When Bob is in precalculus, he gets bored and writes all the permutations in "precal". Since he is not very smart, it takes him 5 seconds to write each permutation. When Bob advances to calculus, he gets bored and writes all the permutations in "calculus". He is smart and can now write each permutation in 2 seconds. Find the positive difference in minutes between the time it takes for him to write the permutations of "precal" and "calculus".

Solution