A man has a certain number of chickens and goats. Their head count is 30. If the total number of their legs is 84, what is the ratio between the number of chickens and goats?