Write the equation of a sine function given the following key features:

Key Features
Amplitude: 3
Period: 3pi
Phase Shift: pi/8
Vertical Shift: -2