Instructions: The task is to generate the correct answer for a given math problem.
Input: Problem: on a certain farm the ratio of horses to cows is 4 : 1 . if the farm were to sell 15 horses and buy 15 cows , the ratio of horses to cows would then be 13 : 7 . after the transaction , how many more horses than cows would the farm own ?
Output:
30