At a theme park I tried five rides. I rode the rollercoaster sometime before the carousel, the log flume sometime after the ghost train and the waterslide immediately after the carousel. The log flume was neither the last ride nor the one directly before or after the rollercoaster. What was the order?