I'm really weak at maths and I have to study for my upcoming exams. I can't seem to find the distance of these coordinates.

1. (p,q) and (q,p)

2. (p+4q, p-q) and (p-3q, p)

I think in the first one I have to open the brackets using the a2-2ab+b2 formula and in the second question, I am doing it normally but my answer stops at q2+q2 under square root. Help?