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