Write a Python function to calculate the sum of two numbers using recursion.
x = 5
y = 7
def recursive_sum(x, y):
    if x == 0:
        return y 
    else: 
        return recursive_sum(x - 1, y + 1) 

print(recursive_sum(x, y)) # 12