#include <iostream>
#include <string>
usingnamespace std;
int main()
{
int a, b, y, z, t;
cout << "This is a solver for linear algebraic equations. \nSo only equations that look like y=ax+b, will work.\n";
cout << "Input the a variable.\n";
cin >> a;
cout << "Input the b variable.\n";
cin >> b;
cout << "Input the y variable.\n";
cin >> y;
y-b=z; //This is equal to ax=y-b, where you subtract the b from both sides. z=(y-b)
z/a=t; //This is equal to x=(y-b)/a, where you divide both sides by a, leaving x by itself. t=(y-b)/a
cout << "X=" << t;
}