If they're both in the numerator, as in this case: seven to the fortieth times seven to the fifth -- actually there's no numerator, but if they're essentially multiplying by each other, and of course, you have to have the same base-- then you add the exponents.