Allie and Bente type at the same speed. Allie started typing first. When Allie had typed 8 pages, Bente had typed 4 pages. When Bente has typed 10 pages, how many pages has Allie typed?