The diagonals of a rhombus are in the ratio 3:4. If its perimeter is 40 cm, find the lengths of the sides and diagonals of the rhombus