There are 30 legs and 13 heads of goats and chicken , so how may goats and chicken are there?