Control 2 devices with 1 mc6

Hello,
I would like to assign 3 Switch of my mc6 mk1 to the boss rc500 and 3 Switch to the boss gt1000 core. Do you know if it’s possible with a dual jack or sth…
Thank you!

I found this cable do you think it Can work? https://m.fr.aliexpress.com/i/1005002452701187.html?gatewayAdapt=gloPc2fraMsite

Just found the solution, i had to Sync both pedal and switch on master (rc500) “midi thru” to “midi out”. Now i need to find a way to Sync track from rc500 to looper of gtk to get an additional track. It should be awesome!!