The two packs of candy cost $49 x 2 = $<<49*2=98>>98.
Therefore, Cory needs $98 - $20= $<<98-20=78>>78 to be able to buy two packs of candy.
#### 78