During the past year, Mrs. Singh purchased 37 books at a wholesale club store. She purchased softcover books for $5.50 each and hardcover books for $13.50 each. The total cost of the books was $355.50 . How many of each type of book did she purchase?