The graph of a sinusoidal function has a maximum point at (0,7) and then intersects its midline at (3,3).

Write the formula of the function, where x is entered in radians.

f(x)= ?