Let x 4's and y 6's are scored in an inning, then 4x + 6y = 140
Here (x,y) can have values (2,22) (5,20) (8,18), (11,16) (14,14) (17,12) (20,10) (23,8) (26,6) (29,4) (32,2) (35,0), Total 12
Thus in 12 ways 140 runs can be scored with the help of 4s and 6s only.