The sides of a rectangle are in a 3 : 4 ratio. What is the length of the shorter sides of the rectangle if its perimeter is 42 cm?