Number of pieces of chocolate in the box=x. Total number of pieces of gum and chocolate=x+14, assuming no other types.
P(chocolate)=x/(x+14). If x=0, P(chocolate)=0/14=0.
If y=number of pieces of assorted types (excluding bubble gum and chocolate), P(chocolate)=x/(x+y+14).