Solution to Very Simple Math Problem