Meet with them and lay out the advantage of exercise.

Design an interesting system base on their age and medical conditions.

Use tools and equipments that are applicable to them.

Slowly introduced new sets of exercises so they would not be bored with monotonous activity.

Always consider their safety. If possible there is always medical personnel available to address immediate medical attention.
Image Source:
pennlive.com
fitexpress.com
blogspot.com