<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def solve_tuple(expr, vars):
 """Build a tuple from subexpressions."""

    result = tuple(solve(x, vars).value for x in expr.children)
    return Result(result, ())