I don't think the provided solution is correct because it's not dimensionally consistent. The quantity
in particular doesn't make sense since it's mixing a distance with a dimensionless constant.
Here's how I think the proper answer should look:
The net force on the box acting perpendicular to the ramp is
where
is the magnitude of the normal force due to contact with the ramp and
is the magnitude of the box's weight acting in this direction. The net force is zero since the box doesn't move up or down relative to the plane of motion.
The net force acting parallel the ramp is
where
is the magnitude of the parallel component of the box's weight,
is the magnitude of kinetic friction, and
is the acceleration of the box.
From the first equation, we find
and since
, we get from the second equation
and with
and
, we get
Let
be the length of the ramp, i.e. the distance that the box covers as it slides down it. Then the box attains a final velocity
such that
From the diagram, we see that
and so