Using AHP for resource allocation problems