change turing machine to RAM
You can implement, on a RAM machine, an interpreter that simulates the behavior of an arbitrary Turing machine (that's just a matter of programming, and there's nothing conceptually interesting or difficult about it); then use it on this particular Turing machine.  That's much easier to do, but might not lead to nice code for the RAM machine.
Or, you can understand/reverse-engineer the algorithm the Turing machine is using (this could be difficult), and then figure out how to implement that algorithm on a RAM machine (which is just a matter of programming once you understand the algorithm).
Asking &quot;how do I write code on a RAM machine?&quot; is not very different from &quot;how do I write code in assembly language?&quot;; you just do it, and there's not a lot of deep scientific or conceptual ideas needed, once you know what algorithms you are using.