The document subtracts 6s from 48, 7s from 42, and 9s from 63 to determine how many of each digit exists in the factorials. It finds that there are 8 sixes in 48!, 6 sevens in 42!, and 7 nines in 63! by repeatedly subtracting the digits and tracking the results.