Town A and Town B were located close to each other, and recently merged into one city. Town A had a population with African Americans. Town B had a population with African Americans. After the merge, the new city has a total of residents, with African Americans. How many residents did Town A and Town B used to have?
Write and solve a system equation to answer the following questions.
Town A used to have residents, and Town B used to have residents.

You can earn partial credit on this problem.