Task: Mathematics
Input (English): x = 6, equation weights = [5, 9, 8]
Output (English): 242