Calculate the Side Lengths