Let the father's and son's age be x and y respectively.
From the question :
5yrs ago the product of their ages:
it was = 4(x-5).
we know that x+y=45.
∴their present ages are:
hope it helps and pls mark this as best answer :)