In this task, you are given an input list A. You need to find all the elements of the list that are numbers and calculate their sum.
['6387', '3315', 'n', '4481', 'G', 'K', 'q', 'I', 'x', 'Z', 'a', '5839']