Detailed Instructions: In this task, you are given inputs i,j, and A, where i and j are integers and A is a list. You need to return the sum of all the numerical elements in the list A between the positions i and j (including positions i and j). Return 0 if no numerical element is present in the list between the given ranges. i and j will be non-negative, and will always have a value less than the length of A. i will always be less than j.
Q: 4, 18, ['R', 'Q', '2187', '8107', 'i', '8089', '1881', 'f', '8741', 'r', 'C', '5417', '1879', '6085', '5369', '3265', '1799', 'k', '6417', '8971', '9723', '5677', 'Y', 'w', 'b', '8381', 'm', '7693']
A:
50632