After Greg lent her $40, Tessa paid him back 40 / 2 =$<<40/2=20>>20.
So Tessa's debt was 40 - 20 = $<<40-20=20>>20.
Finally, she asked for $10 more, leaving the debt at 20 + 10 = $<<20+10=30>>30.
#### 30