Task: Mathematics
Input (English): x = 3, equation weights = [8, 1, 5, 7]
Output (English): 247