In a store display, the manager wants to decorate the front window with brightly colored shoes. He has $48$ pairs of blue shoes and $64$ pairs of red shoes. He wants the blue shoes in rows and the red shoes in rows (no mixing). He also wants to have the same amount in each row.
What is the greatest number of shoes he can have in each row?