Step-by-step explanation
Mechanical advantage is simply the ratio of the load to the effort
In our case, we have the input force = 40N. This input force is the effort
The output force is 120N. This is the load
So the mechanical advantage will be
The mechanical advantage is 3