Try this option (see the attached picture):
1. to determine an equation of line y₁, which ⊥y and includes point a(0;5);
2. to calculate intersection point of y and y₁ (point B);
3. to calculate distance between the point A and B, using vectors properties.