Solving a system of linear equations using elimination with multiplication and addition