In a community of mermaids, the coral gardens need care and maintenance. It takes 18 hours for a group of mermaids to clean the coral garden. If each mermaid worked for 9 hours, how many mermaids were in the group?