Answer:
The cost of care in a nursing home, along with the cost of meals and lodging, should be included with the costs for medical or nursing care if the primary reason is to obtain medical care for their parents.
If the primary reason for being there is personal, the total costs for medical or nursing care should be included in the total of deductible medical expenses, but the costs of meals and lodging should not be included.
Consequently, it appears that Jerry's parents are in the nursing home to obtain medical care, while Ernie's parents are in the nursing home for personal reasons other than medical care.