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