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