Create a program to solve the following equation.

x + y = 6
user
Solution: 

For any given two numbers x and y, 
x + y = 6
y = 6 - x 
where x and y are variables.

Therefore, the solution to x + y = 6 is y = 6 - x.
assistant