I have a question about the percentage increase of the price of a good if there is a pay raise given to the firm's workers.
I am reading economics for my own personal interest so I apologise if there are any evident gaps in my knowledge that may require further attention.
I was reading an extract from an economics textbook and the following passage is provided:
Firms will try to pass on increases in their costs to customers. For example, if a firm gives a 5% pay rise to its workers, and wages account for 80% of its costs, then it will need to increase prices by 4% (80% of 5%) to maintain its profit margins.
For proof, this passage is also provided in image form (without the mathematical conversion of percentages):
I'm confused by how the calculation of $80 \% \times 5\%$ results in the percentage rise of the good's price in order to maintain the original profit margins.
No attempt at the calculation or any intuition was provided (which sadly appears to be a common theme amongst elementary economics textbooks).
I attempted to use the gross margin equation:
$Gross Margin = \frac{Revenue - COGS}{Revenue}$
but this did not help me in any way.
I was wondering how the calculation above was derived and where the intuition comes from.