A man is now 3 times as old as his son. In 10 years time, the sum of their ages will be 76. How old was the man when his son was born?