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.
['j', 'M', '1217', 'L', '5059', 'i', 'X', 'R', '2287', 'N', '9797', '7831']