First off you should take them to the nearest hospital. If they are still talking and breathing well this means that the food or whatever is lodged in their esophagus. From what I've learned do not do the hiemlich maneuver because that can make it worse. This actually happened to my brother last week and he is now fine. I hope this helped you!
It is the quickest way to get food dislodged from someone's throat and it doesn't hurt if it doesn't work (or even if it does lol). If it doesn't work, you must then perform the Heimlich Maneuver.