Let the age of Priyanka be x years and that of Deepika be y years.
The sum of ages of Priyanka and Deepika is 34 years.
.....(I)
Priyanka is elder to Deepika by 6 years.
.....(II)
Adding (I) and (II) we have
Putting the value of x in (I) we have
y = 14
Thus, Priyanka's age = 20 years and Deepika's age = 14 years.