Task: Mathematics
Input (English): x = 6, equation weights = [8, 1, 3, 9]
Output (English): 1791