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.
['x', 'd', '9439', '6843', 'H', 'g', '6265', 'g', 'a', 'o', '5985', 'B', 'e', '5131']