1-3: “As I was going to St. Ives…”: consider the following nursery rhyme:

As I was going to St. Ives, I met a man with seven wives. Every wife and seven sacks, every sack and seven cats, and every cat and seven kittens. Kittens, cats, sacks, and wives, how many were going to St. Ives?

The question at the end is a trick question because only the narrator is going to St. Ives. Write a program to determine the total number of things (including people, animals, and sacks) that were met by the traveler.

An explaination of how to approach this (in Visual Logic) would be awesome.
Basically I have to write a program that calculates the total.