Joint variation + percent

The weight (W) that can be supported by a wooden beam varies directly as the square of its diameter (d) and inversely as its length (l).
a) What percentage increase in the diameter would be necessary for a beam twice as long to support an equivalent weight?

b)What percentage change in the weight would be capable of being supported by a beamthree times as long with twice the diameter?
thank you.