Answer
Please see the work below.
Work Step by Step
As ethylene glycol molecules can form hydrogen bonding with each other while the pentane molecules can't do that. The greater intermolecular forces in ethylene glycol show the greater resistance to flow i.e viscosity.