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