Here's the solution:
1. Top left
2. Bottom right
3. Top right
4. Bottom left
5. Middle right
6. Middle left
7. Bottom middle
8. Top middle
Remember: This order opens the way to the gym's leader, Jasmine.
Good luck conquering the gym!