Let’s say the fixed asset for the past year is $100. Depreciation is $40. So at the end of the past year, your fixed asset would be at $60.
In the current year, your fixed asset is $150, which means you will have spent $90 on CapEx ($40 to ‘replace’ the old equipment and $50 to purchase new equipment).