Solve a system of equations using elimination