Shift+Mode, Statistics, then select 2 (Should say A+BX). This gives a table with two columns.
Input the data, then move to the bottom of the X or Y column using the scroll buttons. Then press Shift+1, and 5 to go to Var. This will give you the option to find n and the mean of x and y. Press = after selecting a function and this will calculate the value for that column. Press Shift+1 again, then select 4 (Sum), this will allow you to choose Exy, Ex2 etc, and select them as before.
Remember to delete any values of n, Ex etc from the table before calculating a new value, as they will be included in the next set of calculations.