6 ducks and 5 pigs cost 213 dollars , while 2 ducks and 9 pigs cost 269 dollars . Find the cost of a duck and a pig .