This was a problem for Marx, because he thought of the rate of exploitation as primary -- his idea was to reason from the rate of exploitation to the rate of profit to the values in exchange. But, if the rate of exploitation has to differ from industry to industry, what is the rate of exploitation we should start with?
Marx left that as an unsolved problem for some brilliant young Marxist economist, but the first (partial) answer came from a self-described "vulgar" (common-sense) economist, Professor Wilhelm Lexis. Lexis' idea is that the concepts of surplus-value and rate of exploitation be applied to the working class as a whole. There is then no difference in the organic composition of capital to worry about -- the organic composition of capital to use in the computation is the composition for the entire capitalist economic system. That determines the rate of profit, which then determines the "values in exchange."
That isn't quite the whole story. Remember, the wage is the labor cost of the goods and services workers consume. In our example, that beer gets more expensive and bread gets cheaper. That may increase or decrease the cost of goods and services workers consume. So the rate of exploitation for the economy as a whole is not independent of the relative prices. We still can't do what Lexis suggested: take the rate of exploitation for the economy as a whole and use that to compute the relative prices, because the price of beer and bread that we come up with may not be consistent with the cost of labor that we started with. There has to be a rate of exploitation and profits and relative prices that all work together. Figuring out what they could be is called the "transformation problem," i.e. the problem of transformation from labor values to market prices.
Where does that leave Marxism? Most likely, where you stand depends on where you sit. For a committed Neoclassical economist, it leaves Marxism without any foundation, a system of logical contradiction. (It leaves the Classical Political Economy in the same situation, with the distinction of being less complete). For a committed Marxist, it leaves a complex problem to be solved by ongoing research and a more complicated set of tools than Marx might have expected. You pick.