Answer:
The number of counties in state A is 82 and the number of counties in state B is 80
Step-by-step explanation:
Let
x -----> the number of counties in state B
x+2 -----> the number of counties in state A
we know that
The sum of counties in state A and state B must be equal to 162

Solve for x
Group terms that contain the same variable and move the constant to the other side

Combine like terms

Divide by 2 both sides

so

therefore
The number of counties in state A is 82 and the number of counties in state B is 80