Simple Go Solution
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```\nfunc minimumMoney(transactions [][]int) int64 {\n    base, extra := 0, 0\n    for _, t := range transactions {\n        if t[0] > t[1] {\n            base += t[0] - t[1]\n            extra = max(extra, t[1])\n        } else {\n            extra = max(extra, t[0])\n        }\n    }\n    return int64(base + extra)\n}\n\nfunc max(a, b int) int {\n    if a > b { return a }\n    return b\n}\n```
['Go']