Hello, I am a beginner and I am so stumped with these two problems. The first one is, how do I get the output to look like this?

Enter the number of pods followed by
the number of peas in a pod:...