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