solve y=2*q*x+1 and y=0.7x-5