A password must be $6$ characters long and contain only digits and lower-case English letters. How many different passwords start with a digit or end with a letter?
I was only given the answer as $(10 \cdot 36^5) + (26 \cdot 36^5) - (10 \cdot 26 \cdot 36^4)$.
Please explain this to me as soon as possible.
Start with a digit: $10\times 36^5$ passwords
End with a letter: $26\times 36^5$ passwords
Start with a digit AND end with a letter: $10\times 36^4\times 26$ passwords
The passwords in the third group are included twice in the first and second groups, so the correct answer is: $10\times 36^5+ 26\times 36^5-10 \times 36^4\times 26.$
The answer you provided is incorrect, so you may find it difficult to understand.
You might want to draw a Venn diagram that consists of two circles intersect each other, $A$ for "start with a digit", $B$ for "end with a letter", the shared part is for "start with a digit AND end with a letter" and ignore the "empty set" symbol.