At the zoo gift shop, posters of rhinoceroses cost $5 and posters of grizzly bears cost $3. Mrs. Silva bought 6 posters and spent $22. How many of each type of poster did she buy?