Number will be divisible by 5 , when last digit is eight 0 or 5.
CASE 1) last digit is 0
Now as there are two 6's , so we again have to make 3 cases under case 1
case a ) number doesn't contain any 6's
case b ) number contains only one 6
case c ) number contains both 6's
CASE 2) Last digit is 5
again there also three cases just like case 1.
Now logic part is done , only calculation remains.
CASE 1 :
part a) 5*4*3=60 ways
part b) as this time we have one 6 , that can be at 1's place or 2nd or 3rd => 3 ways to place 6 and other digits 5*4 total = 20*3=60
part c) this time both 6 present , first place those two 6's to those available three places in 3C2 ways
total ways =3*5=15
case 1 total = 135
CASE 2 :
part a) 4*4*3=48 ways
part b ) 5*4+4*4+4*4=52 ways
part c) 5+5+4=14 ways
total of CASE 2 =114
total = case 1 + case 2 = 249 ways