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