Word problem involving a sine or cosine function - Problem type 2