Here, what we want to find is the lowest number of bottles / soaps while having the total inventory used. As we want the number of bottles and soaps to fit perfectly, we have to find a common divisor of 48 and 64. In addition, since we want the maximum number of baskets, we want to find the highest common divisor of the two numbers. Using a little guess and check, we can find 16 baskets as our answer. To have the same number of soaps and lotions in each, we have 48/16= 3 soaps per basket and 64/16=4 lotions per basket.
Feel free to contact me with further questions.