solve function

Solve a system of equation