First of all, it is important to know that the tip of the hour hand and the ceiling varies sinusoidally, which means it has to be represented by a sinusoidal function

According to the problem, the amplitude is 15 because that's the length of the hour hand. So, A = 15.
Given that it's about a clock, the period is 12 hours because each lap takes that time. So,

We solve for k.

We found the constant.
On the other hand, the maximum value takes place when x = 6. So, the maximum value is y = 53. Using the information we have at the moment, we form the following.

Then, we evaluate the function when x = 0, and y = 23 to get another equation and form a system.

If we combine the equations, we get

Therefore, the equation is

Observe that the function is a cosine because the term r is equal to pi/2.