Making 30 -> 5 and 20 -> 7
the test results in 10 which explicitly indicates that the code is doing as it should.