Time spent walking = tw = 10/x
Time spent cycling = tc = 45.5/(x+6)
tw + tc = 10/x + 45.5/(x+6) = 4.5 hrs
10(x+6) + 45.5x = 4.5 (x2 + 6x)
55.5x + 60 = 4.5x2 + 27x
-4.5x2 + 28.5x + 60 = 0
using the quadratic formula
x = {-28.5 ±√[28.52 - (4)(-4.5)(60)]}/2(-4.5)
= [-28.5 ±√(812.25 + 1080)]/-9
= (-28.5 ± 43.5)/-9
since we are not interested in negative speeds we will evaluate -72/-9 = 8 mph is her walking speed and 8 + 6 = 14 mph is her cycling speed.
verify 10/8 + 48.5/14 = 1.25 + 3.25 = 4.5 hrs.