Second one. I thought I had submitted it!
SP is the distance between S and P, which is a vertical line: you move 0 horizontally and 5 vertically. Then, you can check the rest of the distances: some are vertical, some are horizontal (with lots of patience!:)