function [ kr kl ] = SpringConstants(k_target,X0,XF,M0,l)
%UNTITLED5 Summary of this function goes here
%   Detailed explanation goes here

alpha_0 = 30*pi/180;

A = ones(2,2);  
A(1,2) = -1;
A(2,1) = X0-XF-alpha_0*l;
A(2,2) = -(X0-XF+alpha_0*l);

B(1,1) = -M0/(l*(X0-XF));
B(2,1) = (k_target*alpha_0-M0)/l;


x = A\B;

kr = x(1);
kl = x(2);

end

