What would cause pain in the legs with a racing heartbeat?

How old r u. Not sure they are related but it depends on your age. Anything heart related u need seen by your physician.