amount of coffee A + amount of coffee B = 164 pounds, or A + B = 164lb
then $4.15/lb x A lb + 5.70/lb x B lb = $798.40
solve the first equation for A, and substitute that value into the second equation, then solve the second equation for B
once you have the value for B, you will be able to subtract that value from164lb to get A