I guess that you do it all in HTML? Then you first need a page to get the numbers, and then a page to show the result. The first page could look like this (only the form here).
// page form1.php
<form action="form2.php" method="post">
<input type="text" name="number1" />
<input type="text" name="number2" />
<input type="submit" />
</form>
This is a very basic form. You can make it better, read up on html, form and input for that information. Anyway, on the next page you want to catch the numbers sent, add them and show everything. It could look something like this (again only the basics).
<?php // Starts a php block. It is in php blocks you handle everything with php.
$number1 = $_POST['number1']; // Here you assign the variable $number1 to what you did send in the first form.
$number2 = $_POST['number2']; // Same for $number2. Note that all rows ends with a semicolon.
$result = $number1 + $number2; // Counts and assign the result to $result.
echo "$number1 + $number2 = $result"; // echo is used to print things to the screen. All the variables are automatically replaced when using double quotes".
?> // Ends the php block
Now for your next assignment to really learn it. You should allow the user to insert a third and forth number, addition all the way.