In the figure below, PQRS is a rectangle, and points Q and R lie on the graph of y=ax^2, where a is a constant. If the perimeter of PQRS is 10, what is the value of a?

From the graph I got that the length of the rectangle is 3 and the width is 2. Is this correct? I don't know what to do next. Thanks in advance