What are some diseases that are linked with pain in the arm and the bones in the toe moving toward each other?

Hard to understand. Your question. However, there are several diseases, such as paget's disease, which may involve bone pain at multiple sites in the body. Best to follow up with your family doctor and get some blood work done to determine the nature of this problem. He/she may then refer you out to a specialist.
Rheumatoid arthritis. Could conceivably cause both, but more likely there is no connection with these 2 issues. See your friendly neighborhood podiatrist or orthopedist.