How do determine the recursive formula?

I have the following code that I need to rewrite into a recursive method:

I understand this code, and I understand the theory of recursion. I even understand the factorial and Fibonacci recursion code. But I'm dealing with two sets of numbers here and I'm confused.

Steph