Simone is stocking a shelf with bottles of salad dressing. She has one box with 30 bottles and another box with 18 bottles. She can fit 6 bottles in a row on the shelf. How many rows does she make using all the bottles in both boxes