Answer
Real part=$2$
Imaginary part=$5$
Work Step by Step
A complex number is written as $a+bi$, where $a$ is the real part and $b$ is the imaginary part as it is multiplied to the imaginary unit $i$.
Since the complex number is $2+5i$, $2$ represents the real part while $5$ represents the imaginary part.