Hey Walowizard.

Are you doing a statistics subject? The formulas for simple linear regression are well known and you either should have derived them (possibly in class with the lecturer) or they should be given to you.

Is this the case? The formulas are very simple for the Y,X case but if you haven't done this I can give you some pointers.