Joe likes to play video games and he normally spends $50 a month on video games.  Joe also sells his games for $30 each once he is done playing them. If he starts with $240, how many months can he buy games at $50 and sell them at $30 before he is out of money? Let's think step by step and output the final answer after "####".
user
Joe can buy a game for $50 and sell it for $30, so he is losing $50 - $30 = $<<50-30=20>>20 each month when he buys and sells a game.
Joe starts out with $240 and he buys a game and sells a game he loses $20 per month, so it will take $240/$20 = <<240/20=12>>12 months until he is out of money.
#### 12
Joe likes to play video games and he normally spends $50 a month on video games.  Joe also sells his games for $30 each once he is done playing them. If he starts with $240, how many months can he buy games at $50 and sell them at $30 before he is out of money?
train