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