The net force on the rocket is directed upward with a magnitude of
35 N - 25 N = 10 N
By Newton's second law, the acceleration a is such that net force is equal to the mass of the rocket times its acceleration:
10 N = (2.5 kg) a
a = (10 N) / (2.5 kg)
a = 4 m/s²