Change of situation!!!
If I assume that I know d1 and d2 but do not know alpha1 and alpha2 instead. From equation 1 I have expressed sina1 which results as (x1-x2-d2*cosa2)/d1. How do I change this in order to be able to substitute for cosa1 in equation 2? Or is there another way to solve it?