The answer is the second one: 12=6(x-y)
Explanation: Difference indicates subtraction, x coming before y. Times 6 is multiplication and it applies to both therefore putting x and y into parentheses. Gives means your answer (or equals), which makes 12 the solution.