Task: Mathematics
Input (English): x = 4, equation weights = [0, 2, 1, 3]
Output (English): 39