When using double quotes the variables get interprted. When a variable gets interprted what is saved for the varibale shows up. In the next line the variabes for $x is 3 and $y is 4. The 3 and 4 show up when it is in double quotes. When using single quotes the line goes through how it is written that is why you see $x and $y.

What is the answer to 3 + 4?
What is the answer to $x + $y?