My father is 47 years old and my son is 21 years old. How many years ago, my father was three times as old as my son?

My father is 47 years old and my son is 21 years old. How many years ago, my father was three times as old as my son?

Suppose that the father was three times the age of his son x years ago
47-X=3×(21-X)
47-X=63-3X
2X=63-47
2X=16
X=8
So eight years ago, father 39, son 13