Now, we take east to be the positive direction and west to be the negative.
When both forces point east, the force is the sum of the forces, this is equal to mass times acceleration. That is,
Similarly, when points in the negative direction, we get
Now you have a system of two equations with two unknows ( and ), solve this system to get your answer.