There were three pedistals with book on them, and three empty pedistalas - you have to move the books from one to the other based on the number of candles on each pedestal.

There's a map here:

http://guides.gamepressure.com/divinityiiegodraconis/guide.asp?ID=8194

And details here (in the 'others section')

http://guides.gamepressure.com/divinityiiegodraconis/guide.asp?ID=8226

Hope that helps...