Task: Mathematics
Input (English): x = 3, equation weights = [6, 1, 2, 7, 9]
Output (English): 561