how to solve solving equations involving more than one eporations