I assume house A was your primary residence up to Dec. 2009. If so, if you now sell house A you will not pay any CGT on the gain because the last 3 years of ownership will be exempt. See here:
http://www.hmrc.gov.u...y/sell-own-home.htm#2
If you move back to house A it will become your primary residence again immediately you move there. If you then sell house B you will not have any CGT liability on it if it has been your primary residence throughout your ownership.