Wade A. answered 12/19/19
Experienced Teacher with Specialties in Computer Science and Math
To solve this problem you will need to set up two equations with two variables. The first equation is for calculating how much was spent to buy the pigs, and the second is the equation to calculate amount he sold the pigs for. Let p represent the number of pigs and c represent the cost of each pigs. Therefore the two equations would look like:
(p)(c)=126
(p-5)(c+10) = 126+130
The 126 + 130 equates to the the total of the sale since the profit is the total sale minus amount spent. I hope this helps and puts you in the right direction.