how to solve simultaneous equation of two variables