Let Zia's age be = x years
Raj is three years older than Zia, so Raj's age = x+3 years
As the sum of the squares of their ages is 369, so




Factoring 2 out we have,

Now solving this equation,



x=-15 and x=12
Neglect the negative value as x cannot be negative
So x=12
Hence, Zia's age is 12 years and
Raj's age is 12+3 = 15 years