Assume Terry took "n" hours with a speed of "s" to cover 15 kms.
Since speed = distance/time, it means that
s = 15/n ...........eq(1)
or, 15 = s*n ......eq(2)
Now if his speed is (s+0.5) he takes (n-1) hours to cover the same distance.
15 = (s+0.5)*(n-1).......eq(3)
combining equation 2 and 3 above,
(s+0.5)*(n-1) = s*n
or, s*n -s + 0.5n - 0.5 = s*n
or, s - 0.5n + 0.5 = 0
(putting value of s from eq(1))
or, 15/n - 0.5n + 0.5 = 0
(multiply both sides by 2n)
or, 30 - n^2 +n = 0
or, n^2 -n -30 = 0
or, (n-6)(n+5) = 0
so n = 6 or -5 , but since time can't be negative we discard the negative value. Hence n =6.
Putting value of n in eq(1)
s = 15/6 = 2.5
That is the speed of Terry was 2.5 Km/Hour