Answer :
In the attachment is a graph of the cosine function that represents changing of the tide.
y max = 10 ft at midnight
y min = 5 ft at 6 AM
y max = 10 ft at midnight
y min = 5 ft at 6 AM