C# code lives inside types. A method has a return type, a name and typed parameters: public static decimal LineTotal(int quantity, decimal unitPrice). The body runs when the method is called and return hands back a value of the declared type. A short method can use an expression body: => quantity * unitPrice;.
The types you meet first are int for whole numbers, decimal for money (write literals with an m suffix, as in 4.50m), string for text and bool for true or false. The compiler checks every call against the parameter types, so passing a string where an int belongs is a compile error, not a surprise at run time.
A .NET 10 console app often starts with top-level statements in Program.cs. In this workspace the tests call your methods directly, so you write static methods inside a static class, and the tests call them as Roastery.LineTotal(3, 4.50m).
A block-bodied method and an expression-bodied one. Both declare what they return.