Matrices - solving two simultaneous equations