How do colleges calculate the overall GPAs ?

If a student does a couple of courses from outside ( online or community colleges ), they submit the transcripts separately along with their High school transcript during college application. In that case, how does Colleges evaluate those and determine the overall GPA ?