b is given.
h is given.
               SPEED          TIME        DISTANCE
DID              b/h            h          b
ON TIME          r              h-2        b
It's as simple as this: Speed going:
Time to get to destination, on time: h - 2
Speed to get to destination on time:
That's ALL!