The conversion of numbers between different bases has been something I had not encountered for a decade after leaving university. However I faced it in a recent job interview. While I did not have a confident answer in the interview, I spent some time to come up with one. So below is a Jupyter-Notebook of my attempt to answer this question.
(CC0 Creative Commons Free for commercial use No attribution required)
(CC0 Creative Commons Free for commercial use No attribution required)