their ages are x, x+1, x+2 and x+3
So, x (x+1) (x+2) (x+3) = 120, i.e. x^4+6x^3+11x^2+6x = 120
since x is an integer and if x = 4, x^4 = 256 > 120, then x must be < 4.
Putting x = 3, 3(4)(5)(6) = 360 > 120, and you will find out x = 2 and their ages are 2, 3, 4, 5.
Their sum is then 14