Hello, could anyone help me out converting exponential code into linear code.

Heres the code: