easy way to solve linear equations

y=ax+b=0

ax+b=0

ax= -b Divided with a

x=(-b)/a