In order to calculate this you have to create a triangle with the values that you are given, and the distance ran would be the hypothenuse, remember the formula for hypothnuse:
Now we just insert the values into the formula:
AS you can see the hypothenuse in the square is greater than that of the rectangle, so Will who ran the hypothenuse of the square will be the one that ran the longer distance.
By the Pythagorean theorem, .. x^2 +(x -46)^2 = (x +4)^2 .. 2x^2 -92x +2116 = x^2 +8x +16 .. x^2 -100x +2100 = 0 .. (x -50)^2 -400 = 0 .. x = 50 ±20 . . . . . only x=70 makes any sense in the problem
Answer: The rule is when rotating 90 degrees, it's (-y, x), 180 degrees is (-x, -y), and 360 degrees is (y, -x). Just plug in the numbers accordingly, and you should get the correct answer. It worked for me <3.