solution 10x+20y+100z= 290
when z=1 then 10x+20y = 190 so x+2y=19
Y=1 to 9 solution set
(19,0,1).... (1,9,1)..........10 solutions
when z = 0 then
10x+20y = 290 = x+2y = 29
(29,0,0)..................(1,14,0)................ ..15 solutions
when z = 2 then
10x+20y = 90 = x+2y = 9 so the answer
(9,0,2).............(9,4,2)................. 5 solutions
so distinct ways is 30 ways