y=a-x solve for x

add x to both sides

x + y = a
add -y to both sides
x = a - y