What is the length of the missing side of the quadrilateral shown if the perimeter is 5x^2+2x+1?