B and G are compatible with each other.
If your network card in your computer is B, it will connect to both B and G routers at B speeds.
If your network card in your computer is G, it will connect to B routers at B speeds and G routers at G speeds.
As for those numbers, G is faster but B has a bit more range.