what is the answer?

There are 3 different types of tags in a library: red, green, blue.

There are two different arrangement methods planned for the arrangement of the shelves, and 42 books can be arranged on these shelves. ( mathematical)

Lineup A: Red, green, blue books will be lined up in a row on a shelf.

Arrangement B: First, the red, then the green, and the last, the blue books will be lined up in an equal number on a shelf.

Use mathematical operations methods when writing the codes for this problem (eg addExact(a,b) instead of a+b)