I respectfully disagree. I maintain that the upper surface would slip first. Suppose we applied a force of only 30 N, rather than 50 N. Because of the symmetry of the system (i.e., the top surface is in contact with m1, which is held in place by an inextensible wire; this makes the contact of m2 with m1 equivalent to the contact of m2 with the table top), the friction force with m1 will be the same as the friction force with the table top, namely 15 N. So, the total force will be supported by equal frictional forces at the two surfaces. Now, it will take only about 17.3 N for slip to start occurring at the upper surface. So, if the force were increased to 35 N and m2 were deformable, that would be enough for slip to start occurring at the interface with m1. (Of course, at the interface with the table, m2 would not be slipping because the critical force of about 51.9 N would not be exceeded there). The slippage at the top will occur with a frictional force determined by kinetic friction (12.3 N), until the deformational stiffness of m2 brings the deformation to a halt. This will result in a tension of about 12.3 N in the wire.
Chet