ok i'll give you the short explaination =)
if it doesnt make sense or you need more? ....... i'll leave it at that =)
1. two variables are mass and distance between the center of masses of the 2 objects IT IS IMPORTANT YOU SAY BETWEEN THE CENTER OF MASS!!! OR YOU WILL GET 0
2...