An aquarium contained an equal number of horseshoe crabs and sea stars. After 15 horseshoe crabs were removed and 27 sea stars were removed, the ratio of horseshoe crabs to sea stars was 5:3. How many horseshoe crabs and sea stars were there at first? Solve this problem and explain your reasoning.