According to the given information, the coordinates of the treasure chest are related this way:
We also know that James is 10 units away from the treasure chest, it means this is the distance between the 2 points. We can use this information and pythagorean theorem to find the possible locations of the treasure chest:
It means that the y coordinates can be -9 or 5. We can use these values of y to find x using the relation given at the beginning:
It means that the possible locations of the treasure chest are (-15,-9) or (-1,5)