Burn Bootloader using ks0002 (Keyestudio MEGA 2560 R3 ) on Frearduino

Hello everyone
I got a frearduino board stuck on infinite loop. I tried many solution on the web but using other board as AVR. I also got a Keyestudio MEGA 2560 R3 (ks0002) working.
Could anyone tell me how to connect wires from ks0002 to frearduino? And any rules I should follow to flawless get it working again?
Thanx in advance

these are my board

ks0002 | frearduino

50 | 50
51 | 51
52 | 52
10 | RST
5V | 5V