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