The last digit of any number is 0,1,2,3,4...9
The last digit of any of the four whole numbers is 0,2,4,5,6 and 8
then the product of the four whole number cannot be 1,3,7 or 9
Hence if the last digit of product of four whole number is 1,3,7 or 9, the last digit be 1,3,7 or 9
Therefore probability that the last digit in any number is 1,3,7 or 9 =410=25
Therefore probability that the product have last digit 1,3,7 or 9 =(P)4=(25)2=16625
∴a+b=16+625=641