The polynomials (3y^2+4) cm, (2y^2-5x) cm, and (6x+2) cm represents the three sides of a triangle. What is the perimeter of the triangle?