Very often would and could are used not to express possibility/capability but to express willingness to do a thing. It is a polite way of asking.
If you could get me a beer, I'd be much obliged.
Obviously, anyone who can walk to the fridge could get you a beer, but you are asking whether the person is inclined to do you that small favor.
So the statement
I would do B if you could do A.
more likely means "I'd be willing to do B if you'd be willing to do A." And it's nothing to be worried about.
Addendum (Responding to the OP's comment question)
Specifically, you can't apply mathematical strictness to human language. If you look at my profile, you'll see that one of the quotes I cite is Frank McWhorter's keen observation that "no language makes perfect sense."
Much of what happens in language, especially speech, is rife with overtones and undercurrents and connotations; very seldom is it the strict chop-logic imparting of fact. You know this is true, for without that overloading of meaning how could something like irony exist? Example:
You say a person can't use two affirmative words to express a negative? Yeah, right.
"Yeah" and "right" both represent affirmations. And taken together they can also be an affirmation. But said skeptically, they can mean the person speaking the words doesn't believe whatever he's being asked to believe. It can be a very emphatic way to say "That's not true at all."
Math is clean, pristine, beautiful; human language is messy, murky, and also beautiful. You just have to understand that they're beautiful in different ways.
Yeah, right. (And I mean that in the positive sense this time.)
I am the subject of the verb, but English treats me as an object. You can be used for both.
So OP's "reversal" principle doesn't really mean anything. If I say "I like you", I can't reverse it to *"You like I" any more than I can say *"Me like you" (unless I'm Tarzan talking to Jane).
In "If I were you", obviously "I" is the "subject" and "you" are (is?!) the "object". If you reverse the roles of the pronouns "I" becomes the object, so it has to be "If you were me"
See Are You and I You and Me? for further exploration of the issue.
Best Answer
It is because the sentence is in the past subjunctive