Task: Mathematics
Input (English): x = 3, equation weights = [4, 9, 8, 5, 7]
Output (English): 661