Well your question doesn't make any sense, so I'll just tell you how research agreements works.
Basically, once your research agreement naturally ends, you are given a large boost to science. This science is worth the median beaker value of your yet to be researched techs. So, hypothetically if you had three techs left, one costing 2000 beakers, one costing 7000 beakers and one costing 9000 beakers you would get a tech boost of 7000 beakers, the middle (median) value.