
x_desired=30;
difference=12;
i=1;

while difference >0
    x(i)=2*i;
    difference=x_desired-x(i);
    i=i+1;
end

i