You will be given a definition of a task first, then some input of the task.
The task is to generate the correct answer for a given math problem.

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 ?
Output:
4 cm