Let age of Aftab is years and age of his daughter is
years.
Years ago his age was
times older as her daughter was. Then
Three years from now, he will be three times older as his daughter will be, then
Hence the algebraic representation are and