Can you solve the most famous math problem in English Literature? How many were going to St Ives?

The following trick question appeared in the early 19th century in a Mother Goose nursery rhyme: As I was going to St Ives, I met a man with seven wives, Every wife had seven sacks, Every sack had seven cats, Every cat had seven kits, Kits, cats, sacks, wives, How many were going to St. Ives? Answer: 2, 800 do you know how we get this answer?