A given sinusoidal function has an amplitude of 8, an axis at y = 12, a period of 9π, and a maximum at x = 3π. Determine an equation for the function, and find all intersections of the function and y = 16 between x = -5π and x = 12π.