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.
['p', 'X', '8087', '223', 'P', 'm', '2275', '9135', '7181', '4669', '9795', '5877', '4097', 'D', '4087', 'r']