Resource Allocation in the Brain