A spring is hanging from a ceiling. The length L(t) (in cm) of the spring as a function of time t (in seconds) can be modeled by a sinusoidal expression of the form a*sin(b*t) +d. At t=0, when the spring is exactly in the middle of its oscillation, its length is 7 cm. After 0.5 seconds the spring reaches its maximum length, which is 12 cm. Find L(t).