Both words have the same roots actually and are mixed up quite a lot in European languages, depending on the import routes for the respective fruits. In Dutch lime (the green one) is called limoen which sounds closer to lemon I guess.
there are only 3 original true citrus fruits. the mandarin orange, pomelo, and citron. all other citruses that you eat today are some sort of hybrid that humans created