Very interesting and well set out problem. I had a lot of fun working through this one. My first couple of attempts passed most of the tests but I had trouble with tests 21 and 24. The big thing I was missing was realising that Priscilla still doesn't know the answer in step 2, even after taking into account Scott's statement in step 1. After realising that, it all fell into place.