21. The amount that a beam bends downward when it is supported at each end and centrally loaded varies jointly as the mass of the load and the cube of the length, and varies inversely as the cube of the depth of the beam. A beam 4 meters long that has a depth of 15 centemeters bends 0.7 centimeters downwardwhen loaded with a mass of 1,000 kilograms. To the nearest tenth, what is the maximum load that a beam 5 meters long and with a depth of 10 centimeters can carry at its center without bending more than 3.2 centimeters?

Seems that I need to use joint and direct variation in one problem. I'm not sure what to do.