There's a problem with the given information, but I'll get to that later.
Use Newton's second law. When F₂ points east, we have
F₁ + F₂ = (30 kg) (5.0 m/s²) = 150 N
and when F₂ points west, it acts in the opposite direction and
F₁ - F₂ = (30 kg) (10 m/s²) = 300 N
Solve for F₁ and F₂ : we have
(F₁ + F₂) + (F₁ - F₂) = 150 N + 300 N
2F₁ = 450 N
F₁ = 225 N
and
(F₁ + F₂) - (F₁ - F₂) = 150 N - 300 N
2F₂ = -150 N
F₂ = -75 N
But F₁ and F₂ are magnitudes, so they must be positive! Also, it doesn't make sense that when the forces both point east, the mass accelerates less than it does when the forces work against each other. Probably one of the given accelerations are supposed to point west instead of east.