SOLUTION
The weight(w) of an object varies directly with the mass(m) of the object.

Introducing a constant k

Given

Substitute the values of the weight and mass in order to solve for k

Hence, the equation connecting the weight and mass is

Let us now solve for the mass given the weight to be 21N

Hence, the answer is 7kg.