Question 775712
A sandwich can be selected in (12 + 10 + 8 =) 30 ways.


A ham sandwich can be selected in 12 ways.


Therefore, the probability that a sandwich selected at random will be ham is {{{12/30=0.4}}}=40%