Diophantus's Riddle

Diophantus's riddle is a poem that encodes a mathematical problem. In verse, it read as follows:

'Here lies Diophantus,' the wonder behold. Through art algebraic, the stone tells how old: 'God gave him his boyhood one-sixth of his life, One twelfth more as youth while whiskers grew rife; And then yet one-seventh ere marriage begun; In five years there came a bouncing new son. Alas, the dear child of master and sage After attaining half the measure of his father's life chill fate took him. After consoling his fate by the science of numbers for four years, he ended his life.'

Stated in prose, the poem says that Diophantus's youth lasts 1/6 of his life. He grew a beard after 1/12 more of his life. After 1/7 more of his life, Diophantus married. Five years later, he had a son. The son lived exactly half as long as his father, and Diophantus died just four years after his son's death. All of this totals the years Diophantus lived.

Let be the number of years Diophantus lived, and let be the number of years his son lived. Then the above word problem gives the two equations

(1) (2)

Solving this simultaneously gives as the age of the son and as the age of Diophantus.