The strength of a beam with a rectangular cross section varies directly | Solution

The strength of a beam with a rectangular cross section varies directly as x and as the square of y. What are the dimensions of the strongest beam that can be sawed out of a round log with diameter d?