Hello Mimi,
You could rewrite the sentence as follows to make it clearer:
- I took my exercise books and looked at them, astonished.
Or you could move 'astonished' around:
- I took my exercise books and, astonished, stared at them for fifteen minutes.
[I changed the verb to make the sentence sound more natural, but the grammar is the same.]