what you have is an equation of the form:

solve this like an ordinary algebra problem: first add to both sides:

. then multiply both sides by (hopefully B is invertible, or this will be a problem):

it's important to multiply matrices in the proper order, AB is usually NOT the same as BA.