simple problem that I could not figure out how to solve properly. Here\'s the problem and what I gather from sources online: