a, b, c, d, e, f, g, h, i, j
Let S be the set of all 10-letter sequences consisting of the 10 letters above.
Let T be the set of all 8-letter sequences consisting of the first 8 letters above.
Quantity A
The number of sequences in S in which f, b, h, and g appear consecutively in that order
Quantity B
The number of sequences in T in which f and b appear consecutively in that order