A right triangle has a perimeter of 84. The ratio of each of the sides are 3:4:5. What are the lengths of each side of the triangle?