1/2*(1)*(a)^2 + 1/2*(1000)*(b)^2 = 500500, (1)*(a) + (1000)*(b) = 0, solve for a and b