At the arcade Cody won 49 tickets. If he lost 6 tickets and later spent 25 tickets on a beanie, how many tickets would he have left?