That is, the first prelude and fugue is in C major, the second is in C minor, the third in C-sharp major (or D-flat major), the fourth in C-sharp minor, and so on, until the last two preludes and fugues are in B major and B minor, in that order.
