The text mentions: "...because Emma is twelve and Ruby are friends." This directly provides Emma's age.
Answer: twelve.