Task: Mathematics
Input (English): x = 5, equation weights = [9, 2, 7, 8]
Output (English): 1218