To determine the compression of a spring under a 10-N force with a spring constant of 400 N/m, the relationship between force, spring constant, and displacement must be applied. The formula used is F = kx, where F is the applied force, k is the spring constant, and x is the displacement. By rearranging the formula to solve for x, we find that x = F/k. Substituting the values, x = 10 N / (400 N/m) results in a compression of 0.025 meters or 25 millimeters. This calculation illustrates how the spring reacts to the applied force, adhering to Hooke's Law.