# Manipulate plot using solution from Solve [duplicate]

Hi I'm trying to visualize a 2D equation that I have previously solved as I vary a parameter 'b'. First I solve for 'y' in terms of 'x' and 'b', then I intend to use Manipulate.

sol = Solve[y+b==2*x,y]
Manipulate[Plot[y/.sol,{x,-1,1}],{b,-2,2}]


In this simplified example I'm expecting a line of slope 2 to move up and down as I vary 'b' but I just get a blank graph.

This is a tricky. The problem is that the argument b needs to appear explicitly in the Manipulate expression. One solution, perhaps not simplest, is as follows
sol = Solve[y + b == 2*x, y]