A farmer has some ducks and goats in his farm. A visitor counted
14 heads and 40 legs animals. How many ducks and goats are there in the farm?​