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