The total cost C (in dollars) of playing an online game is given by the literal equation C = 30x + 50, where x is the number of months you play the game. Solve the equation for x. How many months do you play the game when you spend $170? $260?