Task: Mathematics
Input (English): x = 3, equation weights = [3, 2, 5, 8, 1]
Output (English): 367