Determine priority type for each task