If $A,B$ are whole numbers (0, 1, 2, 3...) how many solutions will you have for $$A+B=5$$ up to swapping the variables?
I know that these are the outcomes, and I see a pattern forming: $$0 + 5 = 5$$ $$1 + 4 = 5$$ $$2 + 3 = 5$$ But how do I find a formula that works for $$A+B = k$$ where $k$ is any whole number?