For the first time, the horizontal constant force F is applied to the object a to make the object a move a certain distance s on the smooth horizontal plane, and for the second time, the same size force parallel to the inclined plane is applied If the mass of object a is known to be less than that of object B, then Why is the increment of mechanical energy equal in two processes?

For the first time, the horizontal constant force F is applied to the object a to make the object a move a certain distance s on the smooth horizontal plane, and for the second time, the same size force parallel to the inclined plane is applied If the mass of object a is known to be less than that of object B, then Why is the increment of mechanical energy equal in two processes?

According to the conservation of mechanical energy, we can know that the increment of mechanical energy is the work of elastic force and force other than gravity in the system, that is FS, so it has nothing to do with mass