Answer:
Let's call the number of cattle Peter took to the slaughterhouse �P, and the number James took �J.
We know they took a total of 40 cattle, so we can write the equation: �+�=40P+J=40.
From the given information, we also have:
�P cattle sold at James' price would have earned $115,200$115,200.�J cattle sold at Peter's price would have earned $51,200$51,200.
So we can write two equations:
��=115200