That situation is described by Newton's Second Law of Motion. F is force, m is mass and a is acceleration.
F = ma
a = F/m
The math behind this is quite simple. If you double the force,you double the acceleration, but if you double the mass,you cut the acceleration in half