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