Task: Mathematics
Input (English): x = 9, equation weights = [1, 3, 9]
Output (English): 117