how to approach this problem