1) Get all the terms that contain an 'a' to the left side; get all the other terms to the right side:
ax + z = aw - y (Subtract aw from both sides.)
ax - aw + z = -y (Subtract z from both sides.)
ax - aw = -y - z (Factor a out of the left side.)
a(x - w) = -y - z (Divide both sides by x - w.)
a = (-y - z) / (x - w)
2) Get all the terms that contain an 'n' to the lift side; get all the other terms to the right side:
-14n + q = rt - 4n (Add 4n to both sides.)
-14n + 4n + q = rt (Subtract q from both sides.)
-10n = rt - q (Divide both sides by -10.)
n = (rt - q) / -10
n = (q - rt) / 10