You don't get 2 attempts. Try as many times as you like.
Here are a few hints / spoilers:
-Enter twice, but from a different location.
-Exit once (This will become more clear when you're done, don't worry)
-You will need all the staffs (Unless you know a target spell of the 4 schools the staffs represent)
-Staffs aren't used to kill.