In a square, all the sides are the same length.
So, to find the length of the segment SR you can find the length of the segment QR using the formula of the distance between two points, that is:
So, in this case, you have
Therefore, the length of the segment SR is