solve a+c=1, 2a-b+c=0, d+f=0, and 2d-e+f=1