Answer: B)

The mass of shorter bar = 24 kg
Explanation:
We assume that the mass of the metal bar is directly proportional to its length.
We know that the equation to shows direct variation between two quantities is given by :-

Given : Mandy works construction. She knows that a 5 meter long metal bar has a mass of 40 kg.
Mandy wants to figure out the mass (w) of a bar made out of the same metal that is just 3 meters long and the same thickness.
For the given situation the direct variation equation will be :-

It can also be written as :

When we solve this , we get

Hence, the mass of shorter bar = 24 kg