Task: Mathematics
Input (English): x = 4, equation weights = [7, 8, 1, 9]
Output (English): 589