sentence1: Legal Aid gets funding from the federal Legal Services Corp. based on a formula that counts the number of poor people in a service area.
sentence2: Depending on the number of poor people living in a service area, Legal Aid gets funding based on those numbers.