We know, distance between two points A( p,q) and B(r,s) is given by :

So, distance between P an Q is :

Distance between Q and R is :

Distance between R and S is :

Therefore, total distance is 11 + 12 + 2 = 25 units.
Hence, this is the required solution.