Leah is masking a picture frame. The perimeter of her picture is 24 inches and the area is35 square inches. What are the lengths of the picture sides?