d1=500;  v1=1800;
d2=300;  v2=2000;
d3=400;  v3=2000;
d4=500;  v4=2500;
d5=300;  v5=2800;

a5 = zeros(5,50);
for i=1:50
    syms x1 x2 x3 x4 x5 positive
    [x1 x2 x3 x4 x5]=solve(v2*sin(x1)==v1*sin(x2),v3*sin(x2)==v2*sin(x3),v4*sin(x3)==v3*sin(x4),v5*sin(x4)==v4*sin(x5), d1*tan(x1)+d2*tan(x2)+d3*tan(x3)+d4*tan(x4)+d5*tan(x5)==25*i);
    a5(:,i)=([x1 x2 x3 x4 x5])*180/3.1416;
end