Linear diphantine equation implemenation

can u get me the implemenation according to the explanation in the video

i need the program to solving this equation