5,000,000 + 900,000 + 90,000 + 1000 + 300 + 40 + 6
There are

possible pairs they can choose. Let

and

denote the integers that Sofia and Tess, respectively, choose, so that

denotes the integer pair.
The event that either

or

has 5 possible ways of occurring:

So the probability of this happening is

. You're interested in the complement, which means the answer is 95%.