Maggie picked 40 apples. Kelsey picked 28 apples. Layla picked some apples, too. The three averaged 30 apples picked. How many did Layla pick?
Please reason step by step, and put your final answer within \boxed{}.
user