Task: Mathematics
Input (English): x = 4, equation weights = [4, 5, 7, 2]
Output (English): 366