A carousel can be modeled by the equation where the phase shift is adjusted based on the starting position. If the horse reached a maximum height after seconds, find the equation that models the horse’s position.