Definition: The task is to generate the correct answer for a given math problem.
Input: Problem: if 1.5 cm of a pencil is purple , 0.5 cm of the remaining is black and the remaining 2 cm is blue , what is the total length of the pencil ?
