here the simple machine must be a pulley system that can be used here
When pulley system is used as simple machine the force applied by 10 g car is able to pull the 50 g weight by 2 inch in air
So here Mechanical advantage can be defined as
![MA = (output)/(input)]()
here for output we will have
![output = 50gram* 2 inch]()
similarly for input
![input = 10 gram * 2inch]()
now the mechanical advantage will be given as

so here we have

so we have mechanical advantage of 5