The position vector of P and Q are 5i+4j+ak and -i+2j-2k respectively. If the distance between them is 7. Find the value of a.