s=0 for i=1 to 29 x=int(rand*42+17) y=7*x/8+14 print "x="; print x; print " y="; print y s=s+y next i print " s="; print s