Please show how to solve for problems like this: How many pounds of coffee that costs 4.50/lb be mixed with 20 lbs of coffee that costs 7.50/lb to make a mixture that costs 5.00/lb

Let the amount of the 4.50 coffee be x lbs

7.5(20) + 4.5x = 5(20+x)
solve for x