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.
['5243', '3573', '8139', '5123', '5165', 'P', 'R', 'l', '2977', '771', '4521', 'q', '3247']