We have,
And we know that,
Here, area is provided but the force applied will be due to the acceleration of gravity so,
Now, let us calculate the pressure applied by both students;
Pressure(Student A)
Pressure(Student B)
From the above two solutions we can say that, Pressure(Student A) > Pressure(student B)
And thus we can also say that,
Student A, i.e the one wearing high heels has a greater chance of sinking into the ground as it is applying a higher pressure on the ground than B.