Mr. Smith but seven tickets to the puppet show and spent a total of $43. Adult tickets cost nine dollars and children six tickets cost four dollars. How many tickets to each type did Mr. Smith purchase?