The number of chickens to the number of ducks on a farm was 6:5. After 63 ducks were sold, there were 3 times as many chickens as ducks left. How many chickens were there on the farm?