Consider the case in which we use two English texts. That can happen in ways. Then select either one French text or one German text to go with the two English books.
That can be done in ways. Then there are places to put the single book.
That gives to form a line of two English texts, one French text, or a line of two English texts, one German text.
Now you have two more cases.