If we let the age of the father be “F”, and the age of the son be “S”, then we know the following:
1. F = 3xS
2. F+S=40
Therefore, F=3x(40-F)…so 4F=120.
Therefore, F=30 and S=10.