Apply a ratio when we know the total amount and the ratio between the parts.
License: CC BY-NC-SA by Khan Academy