We can create a system of equations to solve this problem,
We know that the father is three times as old as his daughter:
Let x be his age
Let y be her age
Then,
x=3y (1)
x+8=2(y+8)+4 (2)

The answer would be 3x+8=2(x+8)+4, it's the same expression, just with and x.