A bit rough, but mathematical thinking won out in the end! Found a beautiful alternate solution using logarithms