Dan stocked up on batteries. He bought 10 packages of AA and AAA batteries for a total of 72 batteries. The AA batteries are sold in packages of 6, and the AAA batteries are sold in packages of 8. Write a system of equations that can be solved to find how many packages of each type of battery Dan bought. Remember to define your variables.