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