Selling price of 1st buffalo +Selling price of 2nd buffalo=20000
profit for 1st buffalo=0.05 of cost price of 1st buffalo
loss for 2nd buffalo=0.1 of cost price of 2nd buffalo
1.05(cost price of 1st buffalo)+(0.9)cost price of 2nd buffalo=20000
the buffalo must cost must be same = x (say)
1.05x+0.9x=20000
1.95x=20000
x=10256.41
2x=20512.82
profit=20512.82-20000=512.82
profit %=2.56410 %