Again, we can use the idea that displacement is the integration of velocity w.r.t. time.
So, x=∫v dt=∫(2t+5)dt=2t22+5t+c=t2+5t+c
where c is the constant of integration. Its value can be determined by using the given condition. (As particular details have been given about the particle.)
At t=1 s,x=7 m=7=12+5×1⇒c=1 m
Hence, the expression becomes x=t2+5t+1.