Explain the approach

Can you explain how to solve Mixtures problem?

Read about matrix chain multiplication .
You can see tushar roy videos.