Task: Mathematics
Input (English): x = 4, equation weights = [5, 2, 1, 8]
Output (English): 364