The manager at a pizza restaurant keeps track of the number of large pizzas and small pizzas sold each day and the total money r
eceived. On Monday, a total of 63 pizzas were sold, and the money collected was $989. If large pizzas are sold for $18 and small pizzas are sold for $13, how many large pizzas and small pizzas were sold?