In the beginning, Martha lost 18 / 2 = <<18/2=9>>9 crayons.
So after she bought a set of new crayons, she has in total 9 + 20 = <<9+20=29>>29 crayons.
#### 29