There are 80 cookies in a box. Tom eats cookies at a rate of 5 per minute. At the same time, Andy also eats cookies at a different rate. How many cookies does Andy have to eat if he and Tom need to finish the cookies in 10 minutes?