The line P represents the perimeter of a triangle whose sides are in the ratio 3:4:5. Divide the perimeter in the required ratio and construct the triangle.