Minal and Raj have to collect different kinds of leaves for a science project. They go to a park where Minal collects 12 leaves and Raj collects x leaves. After some time Minal loses 3 leaves and Raj collects 2x leaves. Write an algebraic expression to find the total number of leaves collected by both of them.