Kapil told his daughter, "Seven years ago, I was seven times as old as you were then. Also, three years from now, I shall be three times as old as you will be.
Let kapil’s age be x & daughter’s be y
x-7 = 7 (y-7)
x-7y = -42 (1)
x+3 = 3(y+3)
x – 3 y = 6 (2)
Solve (1) & (2), we get
x=42, y = 12