A pencil cost $1.20 and a pen cost $2.90. Jasmiah bought an equal number of such pencils and pens. She spent $32.30 more on the pens than on the pencils. How many pencils and pens did she buy altogether?