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