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.
['1571', '2077', '8543', 'X', '223', 'Y', '1791', 'P', '1225', '3071']