Olivia places her pet frog on a line to observe the frog’s motion. The line is divided into sections that measure 1 centimeter each. The frog begins at 0, moves 18 centimeters forward, moves 6 centimeters backward, and then 12 centimeters backward.

What is the frog’s displacement?