Solve a system of linear equations using substitution