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