0

There are A different types of textbooks for students at a school, but there is only one of each textbook. Each of B students has 2 favorite classes which they want textbooks for. The students pick textbooks in a line and for a given textbook, if the textbook for the favorite class is available t...