If x+y = 6 and x^2-y^2 = 12, then what is x-y?
Since we may write 12 = x^2 - y^2 = (x+y)(x-y) = 6(x-y), we see that x-y = 2.
Complete the following task based on the instruction and optional input provided.### Instruction:
If x+y = 6 and x^2-y^2 = 12, then what is x-y?

### Output:
Since we may write 12 = x^2 - y^2 = (x+y)(x-y) = 6(x-y), we see that x-y = 2.