Assuming, Professor's age as $x$ years
Now,
He spends $\dfrac{x}{6}^{th}$ of his life in childhood,
$\qquad \qquad \dfrac{x}{12}^{th}$ in youth,
$\qquad \qquad \dfrac{x}{7}^{th}$ as bachelor,
after $5$ years of his marriage, his son was born & son's age is $\left ( \dfrac{x}{2} - 4 \right )$.
$\therefore x = \dfrac{x}{6} + \dfrac{x}{12} + \dfrac{x}{7} + 5 + \dfrac{x}{2} + 4 \\ Or, x = \dfrac{x}{4} + \dfrac{x}{2} + \dfrac{x}{7} + 9 \\ Or, x = \dfrac{3x}{4} + \dfrac{x}{7} + 9 \\ Or, x = \dfrac{25x}{28} + 9 \\ Or, 3x = 28 \times 9 \\ Or, x = 84 $
$\therefore \text{ 84 years is the Professor's age.}$