Answer
$x-5=27$
Work Step by Step
Let the number of students originally enrolled in the class be $x$.
$5$ fewer than $x$ can be calculated by subtracting $5$ from $x$.
We get, $x-5$
Also, we have given that $5$ fewer than $x$ is equals to the number of students present in Janine's class, that is, $27$.
So, we get the equation $x-5=27$