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