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.
['5845', '7621', 'z', '7607', '161', '9015', 'M', '5067', 'q', '7117', '5003', 'r', '6057', '3851']