The posters in this thread all seem comfortable with the math involved, so I won't rehash any of that here. Instead, I won't to point out a common-enough design 'element' in DS questions. In many prompts, the question writers are going to test the 'thoroughness' in your thinking. Can you "see" information in more than one way? As such, when dealing with DS questions, you should look for opportunities to "rewrite" information (and sometimes 'rewriting' the question is the "key" to solving it).
Here, we're told that X^2 + Y^2 = 29. That's an interesting piece of information and not something that we would be given all that often. There MUST be a reason why the writer put it there.......
The question asks for the value of (X-Y)^2. This is one of the Classic Quadratics, so it should get you thinking about FOILing. If we just take a moment to FOIL the question, we get....
"What is the value of X^2 -2XY + Y^2?"
NOW the purpose of that original piece of information is clear....it's part of the solution to the question. If we can figure out the value of XY, then we'll have the answer to the question. From here, the rest of the math is pretty straight-forward.
Remember to look for these pattern-based shortcuts. They will appear repeatedly and while they take a little bit of extra work, doing THAT work will make solving the problem that much easier.
GMAT assassins aren't born, they're made,
EMPOWERgmat GMAT Club Page, Study Plans, & Discounts