Task: Mathematics
Input (English): x = 8, equation weights = [5, 2, 4]
Output (English): 340