A farmer divides his herd of cows among his four sons so that first son gets one half of the herd, the second son one-fourth, the third son one fifth and the fourth son 7 cows. the total number of cows in the herd is?

A) 100

B) 140

C) 180

D) None of these

Given total number of cows = X
Now, 1st son share = X/2
2nd son share = X/4
3rd son share = X/5
4th son share = 7

(X/2) + (X/4) + (X/5) + 7 = k

  (20k-19X/20 = 7
                => X = 140