Dragging a line to fit an equation

I’d use two points (myself I’d use sliders with a unit or half unit Step) that form a line. Then, check that slope and intercept are within desired tolerance.