Mrs. Snyder is researching what it would cost to order flower arrangements for a fancy party. She wants one large centerpiece for the head table, and smaller arrangements for the smaller tables. Danville Florist charges $ 12 for each smaller arrangement, plus $ 38 for the large centerpiece. Matt's Flowers, in contrast, charges $ 37 for the large centerpiece and $ 13 per arrangement for the rest. If Mrs. Snyder orders a certain number of small arrangements, the cost will be the same at either flower shop. What would the total cost be? How many small arrangements would that be?