i hope all questions are without repetitions, otherwise we can't solve this !
Total small letters = 26 (a,b,c,....z)
a) the letter a?
total 6 positions, fix a at one position ==> 6 choices
now, you have 5 positions, those have 25*24*23*22*21 choices
Total required answer = 6*25*24*23*22*21 = 150 * (24*23*22*21)
b) the letters a and b?
fix a and b in 6 positions ===> can permute it a and b ===> 6P2 = 30 choices
remaining 4 positions ===> 24 * 23 * 22 * 21
Total required answer = 30 * (24*23*22*21)
c) the letters a and b in consecutive positions with a preceding b, with all the letters distinct?
consecutive positions ===> make ba as one unit
Only 5 positions,===> Choose one for 'ba' ===> 5 choices
remaining 4 positions ===> 24 * 23 * 22 * 21
Total required answer = 5 * (24*23*22*21)
d) the letters a and b, where a is somewhere to the left of b in the string, with all the letters distinct?
First i want to fix b, then a (should be left to b) , after remaining 4 positions have 24*23*22*21 choices.
we have 6 positions ===> 6 choices for b
Number those positions as 1,2,3,4,5,6 from left to right
1) b is at first place ===> a can't place left of b ===> 0
2) b is at second place ==> a have to be first place ===> 1 choices
3) b is at third place ==> a have to be first or second place ===> 2 choices
4) b is at fourth place ==> a have to be first or second or third place ===> 3 choices
5) b is at fifth place ==> a have to be first or second or third or fourth place ===> 4 choices
6) b is at sixth place ==> a have to be first or second or third or fourth or fifth place ===> 5 choices
Total required answer = (0+1+2+3+4+5) * (24*23*22*21) = 15 * (24*23*22*21)
Observation from the questions :-
d) the letters a and b, where a is somewhere to the left of b in the string, with all the letters distinct?
is equivalent to
e) the letters a and b? ===> a and b in any order ==> in total permutations ( 30 * (24*23*22*21) ), half are a is left side of b and remaining half are b is left side to a.