Task: Mathematics
Input (English): x = 1, equation weights = [2, 8, 9, 4, 1]
Output (English): 24