Copyright © University of Cambridge. All rights reserved.
Try a few examples with numbers to convince yourself this works.
You are told that the answer will always be a perfect square - so the factorisation should be easier than you might first think.