Lance takes 6 more cookies than her friend Miya. If Lance puts 1 cookie back, how many cookies does he have?​