How to solve simultaneous equations using the elimination method