2 and 13 shelfs unlocks the green book. But you also need the red books pressed for the safe. Red book numbers are in the locker.
Red and violet is too similar colors, why have same controls (book shelves) for different puzzles? Means I could pick any combination on the red shelf, then 1 on the violet, 1 and 3 on the blue and still solve the green book puzzle, it is confusing.