Megan has 30 brownies and 42 cupcakes to package. She wants to put the same numbers of brownies and cupcakes in each box. What is the greatest number of boxes she can make? How many cupcakes and how many brownies will each box contain?