Martha spent 6/2=<<6/2=3>>3 dollars.
Martha and Doris spent 6+3=<<6+3=9>>9 dollars.
There were 21-9=<<21-9=12>>12 dollars left in the cookie jar.
#### 12