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