From the condition, the sum of their ages now is 18 + 18 = 36 years and A is twice as old as P. ==========> Answer. A is 24 yers old; P is 12 years old.