Hello, tsh44!
The locks on gym lockers have dials with numbers 0 - 39.
Each locker combo consists of 3 numbers. A girl can't remember any of her combo numbers
but remembers that 2 of them are exactly the same.
If she can try one possibility every ten seocnds,
what is the maximum amount of time that it would take her to find the right combo?
I tried 40 x 39 x 39 but it didn't work out. . . . It wouldn't.
If the numbers are \(\displaystyle ABB\) (the second and third numbers are the same),
\(\displaystyle \;\;\)there are \(\displaystyle 40\) choices for the \(\displaystyle A\)
\(\displaystyle \;\;\)there are \(\displaystyle 39\) choices for the \(\displaystyle B\)
\(\displaystyle \;\;\)and
one choice for the second \(\displaystyle B.\)
Hence, there are \(\displaystyle 40\,\times\,39\,\times\,1\) choices for \(\displaystyle ABB.\)
But the combination could be \(\displaystyle \,ABB,\;BAB,\,\) or \(\displaystyle BBA\).
So there are: \(\displaystyle \,3\,\times\,40\,\times\,39\:=\:4680\) possible combinations.
At 10 seconds per combination, it will take:
\(\displaystyle \;\;10\,\times\,4680\:=\: 46,800\) seconds \(\displaystyle \:=\:780\,\) minutes \(\displaystyle \:=\:13\) hours.
Edit: Too fast for me, pka!