The ratio between the present ages of P and Q is 5 : 7 respectively. If the difference between Q's present age and P's age after 6 years is 2, what is the total of P's and Q's present ages?