I am not understanding how to set up mixture problems in algebra please help

I am not understanding how to set up mixture problems in algebra please help