Answer:
the mass of the body is 0.02 kg.
Explanation:
Given;
relative density of the oil,
= 0.875
mass of the object in oil,
= 0.013 kg
mass of the object in water,
= 0.012 kg
let the mass of the object in air = 
weight of the oil, 
weight of the water, 
The relative density of the oil is given as;

Therefore, the mass of the body is 0.02 kg.
F=MA
F=(8 kg)(9.8 m/s)
F= 78.4 N
W=FD
W=(78.4 N)(7 m)
W=548.8 J
How this helps
When the iron bar is placed within the coils of a solenoid it then becomes a magnet.