How to save students' correct answers into a Firebase DB?

i got marks of this number because i put number in these blocks but what about those student who will solve my quiz how i will get

blocks (4) blocks (5)