So a method (a/k/a subroutine, function) is just a procedure that takes some inputs and returns an output (just like any function you have encountered in math, except it doesn't always have to use numbers as inputs and outputs, though it can). Since it's a homework, I won't answer using your case, but will show you an example on something else instead:
Suppose I have a textbox (txtInput) and and a button (btnCalculate) and I want to show a Message Box that displays ('Hooray') if and only if the textbox has the string 'Victory!' in it (otherwise 'Drat!'). One method of doing this is what you did previously (I suspect):
So here we have two methods. The btnCalculate_Click method orders the getMessageText method to give it a string based on the value of textInput.Text which it passes to the method. The return keyword in getMessageText causes the method to (a) immediate halt it's calculations and (b) give the returned value back to the method that called this subroutine.
If we wanted to get a number from this method, instead of a string, we could change it so that it would look like:
public int getMessageText(string input)
if( input == "Victory!" )
See how the line that declares the method (called the function signature) now contains int which indicates that this method returns an integer now. Accordingly, the return values were changed in the body of method so that it's returning integers instead of strings.
Does that make sense? This is a very basic aspect of the language, so it is consequently kind of hard to explain. Please ask further questions if you are still confused.
P.S. if you use the [code] and [/code] tags to wrap your code, it will be formatted correctly.
All advice is offered in good faith only. You are ultimately responsible for effects of your programs and the integrity of the machines they run on.