Task: Mathematics
Input (English): x = 6, equation weights = [8, 1, 3, 7]
Output (English): 1789