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