Task: Mathematics
Input (English): x = 9, equation weights = [3, 8, 2]
Output (English): 317