A cantilevered beam with a rectangular cross section is loaded by a force perpendicular to the beam centerline at the free end. The cross section is 100mm high and 25 mm wide. The vertical load at the beam end is 40,000 N. Calculate how long the beam should be to give tensile and compression stresses 10 times higher than the maximum shear stress. Also, calculate these stresses.