They have to collect their baggages from JFK. If they have connecting flight from JFK, as soon as they gets out from immigration & baggage, there is a seperate counter for connecting flight (domestic). They can show their ticket to them and they'll take care of the baggage from that point. If they don't have a connecting flight, they have to take all their baggage to particular terminal for check-in
They have to collect their