Solving the first problem in the expressions_worksheet

This is my first attempt to solving the dog years question. I asked the
instructor if I was on the right track using this code.