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