Episode 18
Our heroes check out a gem exhibition, but it’s canceled when Master Thief Keyes picks the lock! He often targets the work of locksmith Ed, whose apprentice Locke recently quit. Ed has his suspicions... When a fire starts at the Pokémon Center, Locke gets trapped inside! Ed comes to help, and the two locksmiths and their Binacle friends work together to open the tricky lock. Locke confesses that he became Master Thief Keyes to earn Ed’s respect—and Ed says he already knew! The lock comes open, and Officer Jenny arrests Locke, but lets him off with a warning. Ed, Locke, and their Binacle are reunited, and all is well!
Aired 10/03/2016EP 18 - Episode 18

Pokémon the Series: XYZ
The journey of Satoshi and his friends through the Kalos region continues! After Satoshi obtains his seventh gym badge, the group is moving toward the next town when Eureka discovers a mysterious Pokémon resting in her pochette. Soon given the name Puni-chan, it is one that even Satoshi and Serena's new Pokémon Zukan cannot identify. However, it quickly becomes apparent that Puni-chan is the target of a mysterious group clad in bright red suits known as Team Flare, aiming to capture the new Pokémon to further their agenda. But when Satoshi and the gang realize that the enigmatic organization has no intention of treating Puni-chan with any decency, they take a stand in opposition to Team Flare's plans, daring to fight back.
With Gojika's predictions looming above them, Satoshi aims for his final gym badge while Serena contests for her last Princess Key in order to be able to compete at the TriPokalon Master Class. But as Team Flare begins to move in search of the mysterious Z, the stories of Pokemon XY and Pokemon XY: Mega Evolution cross paths as Satoshi and his friends, along with Team Rocket, get caught up in a scheme that could put Kalos in great danger.
(Source: MAL Rewrite)