Which of the following is an extinct group of mollusks related to today's chambered nautilus?
A. trilobites
B. ammonites
C. foraminifera
D. stromatolites