Because of the orientation of the symbol of the battery...
![enter image description here](https://i.sstatic.net/WjG6b.png)
..we can tell that the current is flowing from A to B...
![enter image description here](https://i.sstatic.net/IkJyn.jpg)
Using the right hand rule, this means that force on the wire is down...
![enter image description here](https://i.sstatic.net/vHfbK.gif)
If the force on the wire is down, the the corresponding force on the magnet must be up - counteracting gravity and lifting it and making it look lighter to the scale.
So that should explain why you ended up with the wrong sign.
The current in the wire is...
current = voltage / resistance
current = 40 volts / 10 ohms
current = 4 amps
The force on the wire is...
force = current * length * magnetic field
force = (4 amps) * (5 cm) * (1 tesla)
force = 200mN (millinewtons)
While a scale measures force (newtons), it displays grams (units of mass). It makes the conversion by assuming that the scale is on earth and the mass is bring accelerated by gravity.
force = mass * acceleration
The acceleration of gravity is the gravitational constant, usually written as "g" and has a value of approximately 6.673×10−11 Newtons ( meters / kilograms)^2.
If you put a 1 gram weight on a scale and the display reads "1 gram", that means that there is a force pushing down on the top of the scale of...
F = (1 gram) * g
F = 9.807 mN (millinewtons)
In the experiment above, the current in the wire created a force of 200 millinewtons. To find the weight that a scale would read when a force of 200 millinewtons is applied to it...
force = mass * acceleration
mass = force / acceleration
mass = (200 millinewtons) / (g)
mass = 20.39 grams
(Because of the configuration of the experiment, this force would be up and therefore subtracted from the initial reading on the scale.)
The scale in the picture does not have a decimal point, so they probably expect you to round that 20.39 grams to 20 grams, but I think this is not a great answer since the scale could be different by 21 grams if the initial weight had been rounded down for display.
For example, if the magnet initially weighed 30.5 grams, the scale would round that up and show 31 grams on the display. If you then turned on the switch, the upward force created by the magnetic field would make the magnet seem to weigh 30.5-20.39 = 10.11. The scale would round the 10.11 down to 10. In this case, the reading of the electronic balance would have decreased by 31-10 = 21 grams, which is not one of the choices given.
You should ask for your money back! :)