Amal has written 7 pages and he typed 5 pages for an assignment. How much did Amal write than type?