Minecart Puzzle Help

I am trying to essentially make the box puzzle from Deltarune in RPG Maker 2003, but with Minecarts on rails in the first major dungeon. The Minecart is set up to move away from the player upon interaction, the only part I am having issues figuring out is the switch activating after getting the minecart to the desired location.

1752454646358.png
You will need to verify the cart coordinates:
Code:
@> Control Variables: [0022:X-POS] = This Event's X Coordinate
@> Control Variables: [0023:Y-POS] = This Event's Y Coordinate
@> Conditional Branch: Variable [0022:X-POS] == 8
  @> Conditional Branch: Variable [0023:Y-POS] == 5
    @> Control Switches: [0015:End line] = ON
    @>
   : Branch End
  @>
 : Branch End

Original thread: https://forums.rpgmakerweb.com/threads/minecart-puzzle-help.178903/