You switched the costs of the beans. You should be starting with the two equations: and . Multiply the first equation by and add this to the second equation.