How many goats and chickens if there is 13 heads and 30 heads altogether

Do you mean 30 legs?