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