FINDING THE OPTIMAL MEDICAL PLAN CONCERNING A NEEDS