2. Pour 13g into the 1 1g bottle, leaving 2g.
3. Pour 1 1g into a 5g bottle, leaving 6g, and then pour the 2g above into the 1 1g bottle, so there is 8g.
4. Pour 5g bottle into 24g bottle, and there is 16g.
5. Pour 16g into 13g bottle, leaving 3g.
6. Pour the bottle of 13g into the bottle of 5g, and there will be 8g.
7. Finally, pour the 5g bottle into the 24g bottle, and there will be 8g.